summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-12-02 14:37:37 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-12-02 14:37:37 +0000
commit77b03c95a1f5f69e5f9c40c1deeb89948192ce43 (patch)
tree39e5be3b372a651082c04d04d5970d082f7fcb6f /urpm/args.pm
parentc0c8d35be233c5202cb9e90ecffdd0a33acee2e8 (diff)
downloadurpmi-77b03c95a1f5f69e5f9c40c1deeb89948192ce43.tar
urpmi-77b03c95a1f5f69e5f9c40c1deeb89948192ce43.tar.gz
urpmi-77b03c95a1f5f69e5f9c40c1deeb89948192ce43.tar.bz2
urpmi-77b03c95a1f5f69e5f9c40c1deeb89948192ce43.tar.xz
urpmi-77b03c95a1f5f69e5f9c40c1deeb89948192ce43.zip
Add new switches to the urpm tools, --wget-options, --curl-options and
--rsync-options, to specify additionnal command-line options to pass to the downloader programs. These are also available as global variables that can be set in urpmi.cfg.
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm10
1 files changed, 8 insertions, 2 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index 4700402a..9b62d1d8 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -90,6 +90,9 @@ my %options_spec = (
'parallel=s' => \$::parallel,
wget => sub { $urpm->{options}{downloader} = 'wget' },
curl => sub { $urpm->{options}{downloader} = 'curl' },
+ '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] },
'limit-rate=s' => sub { $urpm->{options}{'limit-rate'} = $_[1] },
'resume!' => sub { $urpm->{options}{resume} = $_[1] },
'retry=s' => sub { $urpm->{options}{retry} = $_[1] },
@@ -349,13 +352,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") {
+foreach my $k ("help|h", "version", "wget", "curl", "proxy=s", "proxy-user=s",
+ "wget-options=s", "curl-options=s", "rsync-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",
- "limit-rate=s", "no-md5sum", "update", "norebuild!")
+ "limit-rate=s", "no-md5sum", "update", "norebuild!",
+ "wget-options=s", "curl-options=s", "rsync-options=s")
{
$options_spec{'urpmi.addmedia'}{$k} = $options_spec{'urpmi.update'}{$k};
}