summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-04 09:55:54 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-04 09:55:54 +0000
commitee0d94725b20dcf88950a2af0527db8e23aad5f5 (patch)
tree6beed0d61bdbfa6043961380261549120179094f /urpm/args.pm
parent97d6e91a63b23d2a8029385932603f0bff8aae0d (diff)
downloadurpmi-ee0d94725b20dcf88950a2af0527db8e23aad5f5.tar
urpmi-ee0d94725b20dcf88950a2af0527db8e23aad5f5.tar.gz
urpmi-ee0d94725b20dcf88950a2af0527db8e23aad5f5.tar.bz2
urpmi-ee0d94725b20dcf88950a2af0527db8e23aad5f5.tar.xz
urpmi-ee0d94725b20dcf88950a2af0527db8e23aad5f5.zip
- fix proxy parameter for aria2 (thanks to alkh)
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index e3232893..7207f844 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -141,7 +141,7 @@ my %options_spec = (
'retry=s' => sub { $urpm->{options}{retry} = $_[1] },
'proxy=s' => sub {
my (undef, $value) = @_;
- my ($proxy, $port) = $value =~ m,^(?:http://)?([^:/]+(:\d+)?)/*$,
+ my ($proxy, $port) = urpm::download::parse_http_proxy($value)
or die N("bad proxy declaration on command line\n");
$proxy .= ":1080" unless $port;
urpm::download::set_cmdline_proxy(http_proxy => "http://$proxy/");