Changeset 1678 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/Distribution.pm
- Timestamp:
- Nov 16, 2012, 9:06:13 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Distribution.pm
r1653 r1678 266 266 if (not defined $lsbf) { 267 267 print STDERR "no lsb entry defined for osrelambfile\n"; 268 die"You modified upstream delivery and lost !\n";268 confess "You modified upstream delivery and lost !\n"; 269 269 } 270 270 … … 296 296 } else { 297 297 print STDERR "Unable to read $lsbf file\n"; 298 die"Please report to the maintainer bruno_at_project-builder.org\n";298 confess "Please report to the maintainer bruno_at_project-builder.org\n"; 299 299 } 300 300 } … … 328 328 329 329 # Protection 330 die"Missing install command for $pbos->{name}-$pbos->{version}-$pbos->{arch}" unless (defined $pbos->{install} && $pbos->{install} =~ /\w/);330 confess "Missing install command for $pbos->{name}-$pbos->{version}-$pbos->{arch}" unless (defined $pbos->{install} && $pbos->{install} =~ /\w/); 331 331 pb_apply_conf_proxy($pbos); 332 332 … … 347 347 # Check that all deps have been installed correctly 348 348 $deps = pb_distro_getdeps($f, $pbos); 349 die"Some dependencies did not install ($deps)" if ((defined $deps) && ($deps =~ /\S/));349 confess "Some dependencies did not install ($deps)" if ((defined $deps) && ($deps =~ /\S/)); 350 350 } 351 351 … … 387 387 my $oldsep = $/; 388 388 $/ = $sep; 389 open(DESC,"$f") || die"Unable to open $f";389 open(DESC,"$f") || confess "Unable to open $f"; 390 390 while (<DESC>) { 391 391 pb_log(4,"read: $_\n"); … … 459 459 my $res = pb_system("dpkg -L $p","Looking for $p","mayfail"); 460 460 next if ($res eq 0); 461 open(CMD,"dpkg -l $p |") or die"Unable to run dpkg -l $p: $!";461 open(CMD,"dpkg -l $p |") or confess "Unable to run dpkg -l $p: $!"; 462 462 my $ok = 0; 463 463 while (<CMD>) { … … 583 583 $dirdest = "/etc/zypp/repos.d"; 584 584 } else { 585 die"Unknown location for repository file for '$pbos->{install}' command";585 confess "Unknown location for repository file for '$pbos->{install}' command"; 586 586 } 587 587 my $dest = "$dirdest/$bn"; 588 588 return if (pb_distro_compare_repo($ENV{'PBTMP'}/$bn,$dest)); 589 die"Missing directory $dirdest ($reponame)" unless (-d $dirdest);589 confess "Missing directory $dirdest ($reponame)" unless (-d $dirdest); 590 590 pb_system("sudo mv $ENV{'PBTMP'}/$bn $dirdest/$bn","Adding $reponame repository") if (not -f "$dirdest/$bn"); 591 591 } elsif ($bn =~ /\.addmedia/) {
Note:
See TracChangeset
for help on using the changeset viewer.