summaryrefslogtreecommitdiffstats
path: root/perl-install/install/steps.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-03-03 14:06:55 +0000
committerOlivier Blin <oblin@mandriva.com>2009-03-03 14:06:55 +0000
commitc48b6ad56a4ce1f0ca891694b4cb022c9ddbc578 (patch)
treecdec0f3b696ccbf476774c17c2959b0986645b02 /perl-install/install/steps.pm
parentf43ea7435264d69adddaf7cfbf42bc20dddb022e (diff)
downloaddrakx-c48b6ad56a4ce1f0ca891694b4cb022c9ddbc578.tar
drakx-c48b6ad56a4ce1f0ca891694b4cb022c9ddbc578.tar.gz
drakx-c48b6ad56a4ce1f0ca891694b4cb022c9ddbc578.tar.bz2
drakx-c48b6ad56a4ce1f0ca891694b4cb022c9ddbc578.tar.xz
drakx-c48b6ad56a4ce1f0ca891694b4cb022c9ddbc578.zip
set urpmi in automatic mode for non-interactive installs
Diffstat (limited to 'perl-install/install/steps.pm')
-rw-r--r--perl-install/install/steps.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/install/steps.pm b/perl-install/install/steps.pm
index 702c3cd52..fb3acde1b 100644
--- a/perl-install/install/steps.pm
+++ b/perl-install/install/steps.pm
@@ -409,7 +409,7 @@ sub installCallback {
}
sub installPackages {
- my ($o) = @_;
+ my ($o, $o_interactive) = @_;
my $packages = $o->{packages};
install::pkgs::remove_marked_ask_remove($packages, \&installCallback);
@@ -423,6 +423,7 @@ sub installPackages {
local $ENV{TMPDIR} = '/tmp';
local $ENV{TMP} = '/tmp';
local $ENV{HOME};
+ local $packages->{options}{auto} = to_bool($o_interactive);
install::pkgs::install($o->{isUpgrade}, \@toInstall, $packages, \&installCallback);
}
any::writeandclean_ldsoconf($::prefix);