summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-06-29 08:05:03 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-06-29 08:05:03 +0000
commitb68a2d0ae082df920da5ea38c655aeb9fb19ed5a (patch)
treebe728f3c64fce23a54f57315c7f9abd2356b142d /urpm/args.pm
parentc9e1ae1c9a310d2d1f237646ed381632cf071d4a (diff)
downloadurpmi-b68a2d0ae082df920da5ea38c655aeb9fb19ed5a.tar
urpmi-b68a2d0ae082df920da5ea38c655aeb9fb19ed5a.tar.gz
urpmi-b68a2d0ae082df920da5ea38c655aeb9fb19ed5a.tar.bz2
urpmi-b68a2d0ae082df920da5ea38c655aeb9fb19ed5a.tar.xz
urpmi-b68a2d0ae082df920da5ea38c655aeb9fb19ed5a.zip
Fix parsing of proxy.cfg and --proxy options
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index c55bf10e..1309bda5 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -83,11 +83,11 @@ my %options_spec = (
'resume!' => sub { $urpm->{options}{resume} = $_[1] },
'proxy=s' => sub {
my (undef, $value) = @_;
- my ($proxy, $port) = $value =~ m,^(?:http://)?([^:]+(:\d+)?)/*$,
+ my ($proxy, $port) = $value =~ m,^(?:http://)?([^:/]+(:\d+)?)/*$,
or die N("bad proxy declaration on command line\n");
$proxy .= ":1080" unless $port;
- $urpm->{proxy}{http_proxy} = "http://$proxy"; #- obsolete, for compat
- urpm::download::set_cmdline_proxy(http_proxy => "http://$proxy");
+ $urpm->{proxy}{http_proxy} = "http://$proxy/"; #- obsolete, for compat
+ urpm::download::set_cmdline_proxy(http_proxy => "http://$proxy/");
},
'proxy-user=s' => sub {
my (undef, $value) = @_;