summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-03 15:09:17 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-03 15:09:17 +0000
commitb0ea4b5f02ce11da62c7fea677d14fa8ccb57af4 (patch)
tree8a2e212dbaa15e01c4aeacf24281f4d41e837955
parent6ecb1b70b2b7410995a52b4f7fd010f5be0da525 (diff)
downloadurpmi-b0ea4b5f02ce11da62c7fea677d14fa8ccb57af4.tar
urpmi-b0ea4b5f02ce11da62c7fea677d14fa8ccb57af4.tar.gz
urpmi-b0ea4b5f02ce11da62c7fea677d14fa8ccb57af4.tar.bz2
urpmi-b0ea4b5f02ce11da62c7fea677d14fa8ccb57af4.tar.xz
urpmi-b0ea4b5f02ce11da62c7fea677d14fa8ccb57af4.zip
fix --auto-select option
-rw-r--r--NEWS1
-rwxr-xr-xgurpmi22
-rw-r--r--urpm/args.pm2
3 files changed, 3 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 6ae7f8c9..3dfbdcdb 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@
o fix download progression using wget
- gurpmi:
o exit immediately on success in automatic mode
+ o fix --auto-select option
o fix --root option
o reuse common shared code of urpmi
- urpmf, urpmq:
diff --git a/gurpmi2 b/gurpmi2
index db0bdea1..2b695f00 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -81,7 +81,7 @@ urpm::select::resolve_dependencies($urpm,
$state,
\%requested,
callback_choices => \&ask_choice,
- auto_select => $gurpmi::options{'auto-select'},
+ auto_select => $::auto_select,
);
my @ask_unselect = urpm::select::unselected_packages($urpm, $state);
@ask_unselect
diff --git a/urpm/args.pm b/urpm/args.pm
index 759db946..8bc8a2ba 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -61,7 +61,7 @@ my %options_spec = (
gurpmi => {
auto => sub { $urpm->{options}{auto} = 1 },
- 'auto-select' => sub { $urpm->{options}{auto_select} = 1 },
+ 'auto-select' => \$::auto_select,
'media|mediums=s' => sub { $urpm->{options}{media} = 1 },
"help|h" => sub { gurpmi::usage() },
'root=s' => sub { set_root($urpm, $_[1]) },