* Show output of installation of package with -i, since some packages

install scripts may have important output or even be interactive.
  Closes; #425732
This commit is contained in:
joey
2007-05-23 18:03:47 +00:00
parent f0c859c1c4
commit ffcb91fa04
6 changed files with 23 additions and 0 deletions

View File

@@ -106,8 +106,11 @@ sub install {
my $pkg=shift;
if (-x "/usr/sbin/pkgadd") {
my $v=$Alien::Package::verbose;
$Alien::Package::verbose=2;
$this->do("/usr/sbin/pkgadd", "-d .", "$pkg")
or die "Unable to install";
$Alien::Package::verbose=$v;
}
else {
die "Sorry, I cannot install the generated .pkg file because /usr/sbin/pkgadd is not present.\n";