summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-09-21 15:47:53 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-09-21 15:47:53 +0000
commit8e1922a4447fd41b5cbd0fc1d0c0596b8808197e (patch)
tree0344ef848c2c431a8e821bf65bd2146729d9f5a6 /urpm/args.pm
parent7851ef7ca12a65857eb275995f1a7a0333daadad (diff)
downloadurpmi-8e1922a4447fd41b5cbd0fc1d0c0596b8808197e.tar
urpmi-8e1922a4447fd41b5cbd0fc1d0c0596b8808197e.tar.gz
urpmi-8e1922a4447fd41b5cbd0fc1d0c0596b8808197e.tar.bz2
urpmi-8e1922a4447fd41b5cbd0fc1d0c0596b8808197e.tar.xz
urpmi-8e1922a4447fd41b5cbd0fc1d0c0596b8808197e.zip
Add Prozilla support
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index b6aa04a6..a4ae78da 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -96,9 +96,11 @@ my %options_spec = (
'parallel=s' => \$::parallel,
wget => sub { $urpm->{options}{downloader} = 'wget' },
curl => sub { $urpm->{options}{downloader} = 'curl' },
+ prozilla => sub { $urpm->{options}{downloader} = 'prozilla' },
'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] },
'limit-rate=s' => sub { $urpm->{options}{'limit-rate'} = $_[1] },
'resume!' => sub { $urpm->{options}{resume} = $_[1] },
'retry=s' => sub { $urpm->{options}{retry} = $_[1] },
@@ -389,16 +391,16 @@ 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", "proxy=s", "proxy-user=s",
- "wget-options=s", "curl-options=s", "rsync-options=s")
+foreach my $k ("help|h", "version", "wget", "curl", "prozilla", "proxy=s", "proxy-user=s",
+ "wget-options=s", "curl-options=s", "rsync-options=s", "prozilla-options=s")
{
$options_spec{'urpmi.update'}{$k} =
$options_spec{urpmq}{$k} = $options_spec{urpmi}{$k};
}
-foreach my $k ("help|h", "wget", "curl", "proxy=s", "proxy-user=s", "c", "f", "z",
+foreach my $k ("help|h", "wget", "curl", "prozilla", "proxy=s", "proxy-user=s", "c", "f", "z",
"limit-rate=s", "no-md5sum", "update", "norebuild!",
- "wget-options=s", "curl-options=s", "rsync-options=s")
+ "wget-options=s", "curl-options=s", "rsync-options=s", "prozilla-options=s")
{
$options_spec{'urpmi.addmedia'}{$k} = $options_spec{'urpmi.update'}{$k};
}