summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--urpm/download.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 723559e7..9df6e000 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- aria2 downloading:
+ o fix using a proxy without an auth user (mga#11265)
- testsuite:
o misc enhancements & cleanups
o fix tests for ignored faillure for %pre{,un}, %pretrans
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");
}