Changeset 1595 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/Distribution.pm
- Timestamp:
- May 24, 2012, 10:54:48 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Distribution.pm
r1553 r1595 336 336 # This may not be // proof. We should test for availability of repo and sleep if not 337 337 my $cmd = "$pbos->{'install'} $deps"; 338 my $ret = pb_system($cmd, "Installing dependencies ($cmd)", undef,1);338 my $ret = pb_system($cmd, "Installing dependencies ($cmd)","mayfail"); 339 339 # Try to accomodate deficient proxies 340 340 if ($ret != 0) { … … 446 446 next if $p =~ /^\s*$/o; 447 447 if ($pbos->{'type'} eq "rpm") { 448 my $res = pb_system("rpm -q --whatprovides --quiet $p",""," quiet",1);448 my $res = pb_system("rpm -q --whatprovides --quiet $p","","mayfail"); 449 449 next if ($res eq 0); 450 450 pb_log(1, "INFO: missing dependency $p\n"); 451 451 } elsif ($pbos->{'type'} eq "deb") { 452 my $res = pb_system("dpkg -L $p",""," quiet",1);452 my $res = pb_system("dpkg -L $p","","mayfail"); 453 453 next if ($res eq 0); 454 454 open(CMD,"dpkg -l $p |") or die "Unable to run dpkg -l $p: $!"; … … 562 562 my $pn = $bn; 563 563 $pn =~ s/\.rpm//; 564 if (pb_system("rpm -q --quiet $pn",""," quiet",1) != 0) {564 if (pb_system("rpm -q --quiet $pn","","mayfail") != 0) { 565 565 pb_system("sudo rpm -Uvh $ENV{'PBTMP'}/$bn","Adding package to setup repository"); 566 566 }
Note:
See TracChangeset
for help on using the changeset viewer.