- Timestamp:
- Jul 23, 2016, 8:58:18 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r2116 r2122 2392 2392 echo "Architecture: Source" >> dists/$pbos->{'version'}/$projcomponent/source/Release 2393 2393 echo "Creating Release metadata" 2394 # Signing that file would be useful but uneasy as gpg keys are not there2395 # Cf: http://wiki.debian.org/SecureApt2396 # Same as for repomd2397 2394 apt-ftparchive -o APT::FTPArchive::Release::Suite=$pbos->{version} release dists/$pbos->{'version'} > dists/$pbos->{'version'}/Release 2398 2395 rm -rf \$TMPD … … 2682 2679 $cmdverb = "verbose_\[$v\] "; 2683 2680 } 2684 # this is where we la nch the execution2681 # this is where we launch the execution 2685 2682 if (($cmt =~ /^VE/) && ($vetype eq "docker") && ($pbstep >= 3)) { 2686 2683 pb_mkdir_p("$ENV{'PBTMP'}/vebuild"); … … 2716 2713 print DOCKER "find \$TDIR -type f -print0 | xargs -0 chmod 644\n"; 2717 2714 print DOCKER "find \$TDIR -type d -print0 | xargs -0 chmod 777 2> /dev/null\n"; 2715 #print DOCKER "ls -al \$TDIR\n"; 2718 2716 print DOCKER "exit 0\n"; 2719 #print DOCKER "ls -al \$TDIR\n";2720 2717 close(DOCKER); 2721 2718 $shcmd .= " -v $ENV{'PBBUILDDIR'}:$homedir/$bdir-2 -v $ENV{'PBTMP'}/vebuild:$homedir/$tdir-2 -w $homedir/$tdir-2 $tag{$pbstep} $dkcmd"; … … 4860 4857 # RPM4::Sign not found 4861 4858 pb_log(1,"WARNING: Install RPM4::Sign to benefit from automatic package signing.\n"); 4859 return(undef); 4862 4860 } else { 4863 4861 return(undef) if (((not defined $ENV{'PBPASSPHRASE'}) and (not defined $ENV{'PBPASSFILE'})) || (not defined $ENV{'PBPACKAGER'}) || (not defined $ENV{'PBPASSPATH'})); … … 4877 4875 } 4878 4876 } 4877 4878 # Cf: http://wiki.debian.org/SecureApt 4879 4879 4880 4880 sub pb_sign_file { … … 4912 4912 4913 4913 pb_log(2,"entering pb_sign_pkg: $made ".Dumper($pbos)."\n"); 4914 pb_sign_setenv();4915 4914 # Remove extra spaces 4916 4915 $made =~ s/\s+/ /g; … … 4920 4919 if ($pbos->{'type'} eq "rpm") { 4921 4920 my $sign = pb_sign_setenv(); 4922 pb_log(0,"Signing RPM packages...\n"); 4923 pb_log(2,"pb_sign_pkg: pkgs:".Dumper(split(/ /,$made))."\n"); 4924 $sign->rpmssign(split(/ /,$made)); 4921 if (defined $sign) { 4922 pb_log(0,"Signing RPM packages...\n"); 4923 pb_log(2,"pb_sign_pkg: pkgs:".Dumper(split(/ /,$made))."\n"); 4924 $sign->rpmssign(split(/ /,$made)); 4925 } 4925 4926 } elsif ($pbos->{'type'} eq "deb") { 4926 4927 my $changes = "";
Note:
See TracChangeset
for help on using the changeset viewer.