Changeset 1279 in ProjectBuilder
- Timestamp:
- Mar 25, 2011, 1:23:12 AM (14 years ago)
- Location:
- devel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Base.pm
r1212 r1279 131 131 Needs pb_log support, so pb_log_init should have benn called before. 132 132 133 The first parameter is the shell command to call. 133 The first parameter is the shell command to call. this commend should NOT use redirections. 134 134 The second parameter is the message to print on screen. If none is given, then the command is printed. 135 135 The third parameter print the result of the command after correct execution if value is verbose. If value is noredir, it avoids redirecting outputs (e.g. for vi). -
devel/pb/bin/pb
r1278 r1279 1415 1415 next if ($tmp !~ /^SD BUILD.*:/); 1416 1416 $tmp =~ s|.*../(.*)_(.*).sd.*|$1|; 1417 $made ="$made $tmp"."_*.sd";1417 $made = "$made $tmp"."_*.sd"; 1418 1418 } 1419 1419 close(LOG); … … 1610 1610 chomp($src); 1611 1611 close(KEEP); 1612 $src="$src $ENV{'PBBUILDDIR'}/pbscript.$$"; 1612 $src = "$src $ENV{'PBBUILDDIR'}/pbscript.$$"; 1613 } 1614 if (($cmt eq "Sources") || ($cmt eq "Packages")) { 1615 my ($pbpackager) = pb_conf_get("pbpackager"); 1616 $ENV{'PBPACKAGER'} = $pbpackager->{$ENV{'PBPROJ'}}; 1617 pb_log(0,"Exporting public key for $ENV{'PBPACKAGER'}\n"); 1618 # Using pb_system is not working due to redirection below 1619 system("gpg --export -a \'$ENV{'PBPACKAGER'}\' > $ENV{'PBDESTDIR'}/$ENV{'PBPROJ'}.pubkey"); 1620 chmod 0644,"$ENV{'PBDESTDIR'}/$ENV{'PBPROJ'}.pubkey"; 1621 $src = "$src $ENV{'PBDESTDIR'}/$ENV{'PBPROJ'}.pubkey"; 1613 1622 } 1614 1623 # Remove potential leading spaces (cause problem with basename) … … 1825 1834 echo "Creating Release metadata ($pbos->{'arch'} aka $debarch)" 1826 1835 cat \$TMPD/Release > dists/$pbos->{'version'}/contrib/binary-$debarch/Release 1827 echo "Architecture: $debarch >> dists/$pbos->{'version'}/contrib/binary-$debarch/Release1836 echo "Architecture: $debarch" >> dists/$pbos->{'version'}/contrib/binary-$debarch/Release 1828 1837 echo "Creating Source metadata" 1829 1838 dpkg-scansources $pbos->{'version'} /dev/null | gzip -c9 > dists/$pbos->{'version'}/contrib/source/Sources.gz … … 3806 3815 $ENV{'PBPASSPATH'} = $passpath->{$ENV{'PBPROJ'}} if ((not defined $ENV{'PBPASSPATH'})&& (defined $passpath->{$ENV{'PBPROJ'}})) ; 3807 3816 3817 # Remove extra spaces 3818 $made =~ s/\s+/ /g; 3819 $made =~ s/^\s//g; 3820 $made =~ s/\s$//g; 3821 3808 3822 if ($pbos->{'type'} eq "rpm") { 3809 3823 eval … … 3825 3839 3826 3840 pb_log(0,"Signing RPM packages...\n"); 3827 $made =~ s/ +/ /g;3828 $made =~ s/^ //g;3829 $made =~ s/ $//g;3830 3841 pb_log(2,"pb_sign_pkg: pkgs:".Dumper(split(/ /,$made))."\n"); 3831 3842 $sign->rpmssign(split(/ /,$made)); 3832 3843 } 3833 3844 } elsif ($pbos->{'type'} eq "deb") { 3834 #pb_system("debsign $made","Signing DEB packages"); 3845 my $changes = ""; 3846 foreach my $c (split(/ /,$made)) { 3847 $changes .= " $ENV{'PBBUILDDIR'}/$c" if ($c =~ /\.changes$/); 3848 } 3849 pb_system("debsign -m\'$ENV{'PBPACKAGER'}\' $changes","Signing DEB packages"); 3835 3850 } else { 3836 3851 pb_log(0,"I don't know yet how to sign packages for type $pbos->{'type'}.\nPlease give feedback to dev team\n"); 3852 } 3837 3853 pb_log(2,"exiting pb_sign_pkg\n"); 3838 3854 } 3839 }3840 3855 3841 3856 1;
Note:
See TracChangeset
for help on using the changeset viewer.