Changeset 1080 in ProjectBuilder
- Timestamp:
- Aug 6, 2010, 5:33:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r1078 r1080 1184 1184 my $src = ""; 1185 1185 my ($odir,$over,$oarch) = (undef, undef, undef); 1186 my ($ddir, $dver, $dfam, $dtype, $dos, $pbsuf );1186 my ($ddir, $dver, $dfam, $dtype, $dos, $pbsuf, $pbupd, $darch); 1187 1187 1188 1188 if ($cmt ne "Announce") { … … 1195 1195 ($odir,$over,$oarch) = split(/-/,$v); 1196 1196 } 1197 ($ddir, $dver, $dfam, $dtype, $dos, $pbsuf ) = pb_distro_init($odir,$over,$oarch);1198 pb_log(2,"DEBUG: distro tuple: ".join(',',($ddir, $dver, $dfam, $dtype, $pbsuf ))."\n");1197 ($ddir, $dver, $dfam, $dtype, $dos, $pbsuf, $pbupd, $darch) = pb_distro_init($odir,$over,$oarch); 1198 pb_log(2,"DEBUG: distro tuple: ".join(',',($ddir, $dver, $dfam, $dtype, $pbsuf, $darch))."\n"); 1199 1199 1200 1200 # Get list of packages to build … … 1289 1289 $tdir = "$sshdir->{$ENV{'PBPROJ'}}/$delivery->{$ENV{'PBPROJ'}}"; 1290 1290 } elsif ($cmt eq "Packages") { 1291 $tdir = "$sshdir->{$ENV{'PBPROJ'}}/$delivery->{$ENV{'PBPROJ'}}/$ddir/$dver ";1291 $tdir = "$sshdir->{$ENV{'PBPROJ'}}/$delivery->{$ENV{'PBPROJ'}}/$ddir/$dver/$darch"; 1292 1292 1293 1293 my $repodir = $tdir; … … 1305 1305 cat > $ENV{'PBPROJ'}.repo << EOT 1306 1306 [$ENV{'PBPROJ'}] 1307 name=$ddir $dver - $ENV{'PBPROJ'} Vanilla Packages1307 name=$ddir $dver $darch - $ENV{'PBPROJ'} Vanilla Packages 1308 1308 baseurl=$pbrepo->{$ENV{'PBPROJ'}}/$repodir 1309 1309 enabled=1 … … 1362 1362 1363 1363 # Prepare a script to create apt info file 1364 (cd .. ; for a in i386 amd64 ia64; do mkdir -p dists/$dver/contrib/binary-\$a; dpkg-scanpackages -a\$a $dver /dev/null | gzip -c9 > dists/$dver/contrib/binary-\$a/Packages.gz; done; mkdir -p dists/$dver/contrib/source; dpkg-scansources $dver/dev/null | gzip -c9 > dists/$dver/contrib/source/Sources.gz)1364 (cd .. ; for a in i386 amd64 ia64; do mkdir -p dists/$dver/contrib/binary-\$a; dpkg-scanpackages -a\$a $dver/$darch /dev/null | gzip -c9 > dists/$dver/contrib/binary-\$a/Packages.gz; done; mkdir -p dists/$dver/contrib/source; dpkg-scansources $dver/$darch /dev/null | gzip -c9 > dists/$dver/contrib/source/Sources.gz) 1365 1365 #(cd .. ; rm -f dists/$dver/Release ; apt-ftparchive release dists/$dver > dists/$dver/Release; gpg --sign -ba -o dists/$dver/Release.gpg dists/$dver/Release) 1366 1366 EOF … … 1526 1526 } 1527 1527 my $hoption = "-p"; 1528 # Solaris doesn't support - h1528 # Solaris doesn't support -p 1529 1529 $hoption = "" if ($dtype eq "pkg"); 1530 1530 pb_system("$shcmd \"sudo /sbin/halt $hoption \"; sleep $tm ; echo \'if [ -d /proc/$vmpid ]; then kill -9 $vmpid; fi \' | bash ; sleep 10","VM $v halt (pid $vmpid)");
Note:
See TracChangeset
for help on using the changeset viewer.