summaryrefslogtreecommitdiffstats
path: root/urpmi.update
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-09-05 15:01:21 +0000
committerFrancois Pons <fpons@mandriva.com>2002-09-05 15:01:21 +0000
commite8476e9888b10dc4d2a6e2c7cbef605352f8f62c (patch)
treebc6c0296ee19f2837e4b887afa95bbaa0a4055f6 /urpmi.update
parenteb0e7578ddf22a08597d54c7cc5fe6336445a8db (diff)
downloadurpmi-e8476e9888b10dc4d2a6e2c7cbef605352f8f62c.tar
urpmi-e8476e9888b10dc4d2a6e2c7cbef605352f8f62c.tar.gz
urpmi-e8476e9888b10dc4d2a6e2c7cbef605352f8f62c.tar.bz2
urpmi-e8476e9888b10dc4d2a6e2c7cbef605352f8f62c.tar.xz
urpmi-e8476e9888b10dc4d2a6e2c7cbef605352f8f62c.zip
4.0-13mdk
Diffstat (limited to 'urpmi.update')
-rwxr-xr-xurpmi.update2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpmi.update b/urpmi.update
index 4a516824..e9c5a32d 100755
--- a/urpmi.update
+++ b/urpmi.update
@@ -41,7 +41,7 @@ sub main {
urpm::sync_webfetch($options, @_) }, next;
/^--curl/ and $urpm->{sync} = \&urpm::sync_webfetch, next;
/^--proxy$/ and do {
- my ($proxy, $port) = ($_ = shift @_) =~ m,^(http://[^:]+(:\d+)?)/*$, or
+ my ($proxy, $port) = ($_ = shift @_) =~ m,^(?:http://)?([^:]+(:\d+)?)/*$, or
die _("bad proxy declaration on command line\n");
$proxy .= ":1080" unless $port;
$urpm->{proxy}{http_proxy} = $proxy;