summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm2
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");
}