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