- Timestamp:
- Feb 25, 2012, 2:23:00 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified devel/pb/bin/pb ¶
r1420 r1424 1353 1353 close(LOG); 1354 1354 chdir ".." || die "Unable to chdir to parent dir"; 1355 pb_ system("rm -rf $pbpkg-$pbver", "Cleanup");1355 pb_rm_rf("$pbpkg-$pbver"); 1356 1356 } elsif ($pbos->{'type'} eq "ebuild") { 1357 1357 my @ebuildfile; … … 1427 1427 } 1428 1428 chdir ".." || die "Unable to chdir to parent dir"; 1429 pb_ system("rm -rf $pbpkg-$pbver", "Cleanup");1429 pb_rm_rf("$pbpkg-$pbver"); 1430 1430 } elsif ($pbos->{'type'} eq "pkg") { 1431 1431 # Solaris … … 1471 1471 } 1472 1472 chdir ".." || die "Unable to chdir to parent dir"; 1473 pb_ system("rm -rf $pbpkg-$pbver $ENV{'PBBUILDDIR'}/$pbos->{'type'} $pkgdestdir", "Cleanup");1473 pb_rm_rf("$pbpkg-$pbver","$ENV{'PBBUILDDIR'}/$pbos->{'type'}","$pkgdestdir"); 1474 1474 } elsif ($pbos->{'type'} eq "hpux") { 1475 1475 # HP-UX … … 1492 1492 1493 1493 chdir ".." || die "Unable to chdir to parent dir"; 1494 pb_ system("rm -rf $pbpkg-$pbver", "Cleanup");1494 pb_rm_rf("$pbpkg-$pbver"); 1495 1495 } else { 1496 1496 die "Unknown OS type format $pbos->{'type'}"; … … 3333 3333 $archlist{"$pbos->{'name'}/$pbos->{'version'}/$pbrealpkgdeb"."_$pbver-$pbtag"} = "$pbos->{'arch'}"; 3334 3334 } elsif ($pbos->{'type'} eq "ebuild") { 3335 $theorlist{"$pbos->{'name'}/$pbos->{'version'}/$pbrealpkg-$pbver"."_p$pbtag.ebuild"} = 0; 3336 $archlist{"$pbos->{'name'}/$pbos->{'version'}/$pbrealpkg-$pbver"."_p$pbtag.ebuild"} = "$pbos->{'arch'}"; 3335 my $prefix = "-r"; 3336 $prefix = "_p" if ((defined $testver) && (defined $testver->{$ENV{'PBPROJ'}}) && ($testver->{$ENV{'PBPROJ'}} =~ /true/i)); 3337 $theorlist{"$pbos->{'name'}/$pbos->{'version'}/$pbrealpkg-$pbver$prefix$pbtag.ebuild"} = 0; 3338 $archlist{"$pbos->{'name'}/$pbos->{'version'}/$pbrealpkg-$pbver$prefix$pbtag.ebuild"} = "$pbos->{'arch'}"; 3337 3339 } elsif ($pbos->{'type'} eq "pkg") { 3338 3340 $theorlist{"$pbos->{'name'}/$pbos->{'version'}/$pbos->{'arch'}/$pbrealpkg-$pbver-$pbtag.pkg"} = 0; … … 3412 3414 $p =~ s/\.(i[3456]86|x86_64|noarch|src)\.rpm$//; 3413 3415 $p =~ s/_(i[3456]86|amd64|all).deb$//; 3414 $p =~ s/(-0\.|_p[0-9]{8})[0-9]{6}/$1*/ if ((defined $testver) && (defined $testver->{$ENV{'PBPROJ'}}) && ($testver->{$ENV{'PBPROJ'}} =~ /true/i)); 3416 $p =~ s/(-0\.[0-9]{8})[0-9]{6}/$1*/ if ((defined $testver) && (defined $testver->{$ENV{'PBPROJ'}}) && ($testver->{$ENV{'PBPROJ'}} =~ /true/i)); 3417 $p =~ s/(-r|_p[0-9]+)\.ebuild/$1*/ if ((defined $testver) && (defined $testver->{$ENV{'PBPROJ'}}) && ($testver->{$ENV{'PBPROJ'}} =~ /true/i)); 3415 3418 $theorlist{$p} = -2 if (not defined $theorlist{$p}); 3416 3419 $theorlist{$p} = $theorlist{$p} + 1;
Note:
See TracChangeset
for help on using the changeset viewer.