diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-07-10 08:40:02 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-07-10 08:40:02 +0000 |
commit | 527e71e2bbd83580a528d6cc8dd9a82b1a7d12f5 (patch) | |
tree | 9a8a249eb4b067be52a9d28bd92a41aadf8824f4 | |
parent | 4f0fbf247f66c0171e0c6e4361d7125e2c163703 (diff) | |
download | urpmi-527e71e2bbd83580a528d6cc8dd9a82b1a7d12f5.tar urpmi-527e71e2bbd83580a528d6cc8dd9a82b1a7d12f5.tar.gz urpmi-527e71e2bbd83580a528d6cc8dd9a82b1a7d12f5.tar.bz2 urpmi-527e71e2bbd83580a528d6cc8dd9a82b1a7d12f5.tar.xz urpmi-527e71e2bbd83580a528d6cc8dd9a82b1a7d12f5.zip |
factorize
-rw-r--r-- | urpm/args.pm | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/urpm/args.pm b/urpm/args.pm index 1f90156c..42a0bb12 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -428,17 +428,22 @@ foreach my $k ("help|h", "version", "update", "media|mediums=s", $options_spec{urpmf}{$k} = $options_spec{urpmi}{$k}; } -foreach my $k ("help|h", "version", "wget", "curl", "prozilla", "aria2", 'downloader=s', "proxy=s", "proxy-user=s", +foreach my $k ("help|h", "wget", "curl", "prozilla", "aria2", 'downloader=s', "proxy=s", "proxy-user=s", 'limit-rate=s', 'metalink', "wget-options=s", "curl-options=s", "rsync-options=s", "prozilla-options=s", "aria2-options=s") { + $options_spec{'urpmi.addmedia'}{$k} = + $options_spec{'urpmi.update'}{$k} = + $options_spec{urpmq}{$k} = $options_spec{urpmi}{$k}; +} + +foreach my $k ("version") +{ $options_spec{'urpmi.update'}{$k} = $options_spec{urpmq}{$k} = $options_spec{urpmi}{$k}; } -foreach my $k ("help|h", "wget", "curl", "prozilla", "aria2", 'downloader=s', "proxy=s", "proxy-user=s", "f", "z", - "limit-rate=s", "no-md5sum", "update", "norebuild!", "probe-rpms", 'metalink', - "wget-options=s", "curl-options=s", "rsync-options=s", "prozilla-options=s", "aria2-options=s", '<>') +foreach my $k ("f", "z", "no-md5sum", "update", "norebuild!", "probe-rpms", '<>') { $options_spec{'urpmi.addmedia'}{$k} = $options_spec{'urpmi.update'}{$k}; } |