summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-02 14:31:23 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-02 14:31:23 +0000
commite3a2f316c390cf3fe24e103d7d018acab7de81f0 (patch)
tree7dc89ca711624e4366e53662cea5ad2bd3704f59 /urpm/args.pm
parent43f0942f8e4a865d26817e365f23d20095868fe4 (diff)
downloadurpmi-e3a2f316c390cf3fe24e103d7d018acab7de81f0.tar
urpmi-e3a2f316c390cf3fe24e103d7d018acab7de81f0.tar.gz
urpmi-e3a2f316c390cf3fe24e103d7d018acab7de81f0.tar.bz2
urpmi-e3a2f316c390cf3fe24e103d7d018acab7de81f0.tar.xz
urpmi-e3a2f316c390cf3fe24e103d7d018acab7de81f0.zip
normalize options passing: through %options or $urpm->{options}
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm8
1 files changed, 3 insertions, 5 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index 83561845..903ab2b2 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -185,11 +185,8 @@ my %options_spec = (
},
urpme => {
- auto => \$::auto,
- a => \$::matches,
- noscripts => \$::noscripts,
- repackage => \$::repackage,
- restricted => \$::restricted,
+ a => \$options{matches},
+ restricted => \$options{restricted},
},
#- see also below, autogenerated callbacks
@@ -411,6 +408,7 @@ foreach my $k ('allow-medium-change', 'auto', 'auto-select', 'force', 'expect-in
$options_spec{gurpmi2} = $options_spec{gurpmi};
foreach my $k ("help|h", "version", "no-locales", "test!", "force", "root=s", "use-distrib=s",
+ 'repackage', 'noscripts', 'auto',
"parallel=s")
{
$options_spec{urpme}{$k} = $options_spec{urpmi}{$k};