diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-08-26 22:26:49 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-08-26 22:26:49 +0200 |
commit | 8528697f7a1209761058dcb15897dab8bc87b158 (patch) | |
tree | fbe9eefaf96a01bc9e4e76d6fc54eefedbb4ef3d /urpm | |
parent | 2b8d9cda87d486968c2e1ed07bf31fc479b3c848 (diff) | |
download | urpmi-8528697f7a1209761058dcb15897dab8bc87b158.tar urpmi-8528697f7a1209761058dcb15897dab8bc87b158.tar.gz urpmi-8528697f7a1209761058dcb15897dab8bc87b158.tar.bz2 urpmi-8528697f7a1209761058dcb15897dab8bc87b158.tar.xz urpmi-8528697f7a1209761058dcb15897dab8bc87b158.zip |
fix using a proxy without an auth user (mga#11265)
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/download.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/download.pm b/urpm/download.pm index 31a88264..8fe9256d 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -278,7 +278,7 @@ sub set_proxy { if (my ($http_proxy) = $p->{http_proxy} && parse_http_proxy($p->{http_proxy})) { my $allproxy = $p->{user}; $allproxy .= ":" . $p->{pwd} if $p->{pwd}; - $allproxy .= "@"; + $allproxy .= "@" if $p->{user}; $allproxy .= $http_proxy; @res = ("--all-proxy=http://$allproxy"); } |