summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-09-17 16:01:46 +0000
committerFrancois Pons <fpons@mandriva.com>2002-09-17 16:01:46 +0000
commitf1861b083972db049e61385b2170f2e60a7f0b53 (patch)
treef72d878d752b578a79b944a3cd8b93d230f29048 /urpm.pm
parentb3392d01fc2f69381fafd73eb8a82b24833b3aed (diff)
downloadurpmi-f1861b083972db049e61385b2170f2e60a7f0b53.tar
urpmi-f1861b083972db049e61385b2170f2e60a7f0b53.tar.gz
urpmi-f1861b083972db049e61385b2170f2e60a7f0b53.tar.bz2
urpmi-f1861b083972db049e61385b2170f2e60a7f0b53.tar.xz
urpmi-f1861b083972db049e61385b2170f2e60a7f0b53.zip
4.0-20mdk
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/urpm.pm b/urpm.pm
index c6d6d88e..5f5e0f44 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -161,7 +161,7 @@ sub set_proxy {
/wget/ && do {
for ($proxy->{proxy}) {
if (defined $_->{http_proxy}) {
- $ENV{http_proxy} = $_->{http_proxy} =~ /^http:\/\// ? $_->{http_proxy} : "http://$_->{http_proxy}";
+ $ENV{http_proxy} = $_->{http_proxy} =~ /^http:/ ? $_->{http_proxy} : "http://$_->{http_proxy}";
}
$ENV{ftp_proxy} = $_->{ftp_proxy} if defined $_->{ftp_proxy};
@res = ("--proxy-user=$_->{user}", "--proxy-passwd=$_->{pwd}") if defined $_->{user} && defined $_->{pwd};
@@ -170,9 +170,9 @@ sub set_proxy {
};
/curl/ && do {
for ($proxy->{proxy}) {
- push @res, "-x $_->{http_proxy}" if defined $_->{http_proxy};
- push @res, "-x $_->{ftp_proxy}" if defined $_->{ftp_proxy};
- push @res, "-U $_->{user}:$_->{pwd}" if defined $_->{user} && defined $_->{pwd};
+ push @res, ('-x', $_->{http_proxy}) if defined $_->{http_proxy};
+ push @res, ('-x', $_->{ftp_proxy}) if defined $_->{ftp_proxy};
+ push @res, ('-U', "$_->{user}:$_->{pwd}") if defined $_->{user} && defined $_->{pwd};
}
last;
};