diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2007-12-11 15:47:40 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2007-12-11 15:47:40 +0000 |
commit | 15c0d5414fbeb5b6e2fa65e30cbe99e33b00df20 (patch) | |
tree | a9cbe4864b4e828865e6b8daea790a4d98b94695 /urpm/args.pm | |
parent | 665edb078a198536c90b56d4561234942e077c31 (diff) | |
download | urpmi-15c0d5414fbeb5b6e2fa65e30cbe99e33b00df20.tar urpmi-15c0d5414fbeb5b6e2fa65e30cbe99e33b00df20.tar.gz urpmi-15c0d5414fbeb5b6e2fa65e30cbe99e33b00df20.tar.bz2 urpmi-15c0d5414fbeb5b6e2fa65e30cbe99e33b00df20.tar.xz urpmi-15c0d5414fbeb5b6e2fa65e30cbe99e33b00df20.zip |
add support for aria2 (and thus support for metalink handling as well:)
Diffstat (limited to 'urpm/args.pm')
-rw-r--r-- | urpm/args.pm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/urpm/args.pm b/urpm/args.pm index 58cbdacd..14ebaf57 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -109,10 +109,12 @@ my %options_spec = ( wget => sub { $urpm->{options}{downloader} = 'wget' }, curl => sub { $urpm->{options}{downloader} = 'curl' }, prozilla => sub { $urpm->{options}{downloader} = 'prozilla' }, + aria2 => sub { $urpm->{options}{downloader} = 'aria2' }, 'curl-options=s' => sub { $urpm->{options}{'curl-options'} = $_[1] }, 'rsync-options=s' => sub { $urpm->{options}{'rsync-options'} = $_[1] }, 'wget-options=s' => sub { $urpm->{options}{'wget-options'} = $_[1] }, 'prozilla-options=s' => sub { $urpm->{options}{'prozilla-options'} = $_[1] }, + 'aria2-options=s' => sub { $urpm->{options}{'aria2-options'} = $_[1] }, 'limit-rate=s' => sub { $urpm->{options}{'limit-rate'} = $_[1] }, 'resume!' => sub { $urpm->{options}{resume} = $_[1] }, 'retry=s' => sub { $urpm->{options}{retry} = $_[1] }, @@ -370,17 +372,17 @@ foreach my $k ("help|h", "version", "no-locales", "update", "media|mediums=s", $options_spec{urpmf}{$k} = $options_spec{urpmi}{$k}; } -foreach my $k ("help|h", "version", "wget", "curl", "prozilla", "proxy=s", "proxy-user=s", +foreach my $k ("help|h", "version", "wget", "curl", "prozilla", "aria2", "proxy=s", "proxy-user=s", 'limit-rate=s', - "wget-options=s", "curl-options=s", "rsync-options=s", "prozilla-options=s") + "wget-options=s", "curl-options=s", "rsync-options=s", "prozilla-options=s", "aria2-options=s") { $options_spec{'urpmi.update'}{$k} = $options_spec{urpmq}{$k} = $options_spec{urpmi}{$k}; } -foreach my $k ("help|h", "wget", "curl", "prozilla", "proxy=s", "proxy-user=s", "c", "f", "z", +foreach my $k ("help|h", "wget", "curl", "prozilla", "aria2", "proxy=s", "proxy-user=s", "c", "f", "z", "limit-rate=s", "no-md5sum", "update", "norebuild!", "probe-rpms", - "wget-options=s", "curl-options=s", "rsync-options=s", "prozilla-options=s", '<>') + "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}; } |