summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index de8abf45..f56928c6 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -173,7 +173,7 @@ sub remove_proxy_media {
}
sub get_proxy_ {
- my ($urpm, $_medium) = @_;
+ my ($urpm) = @_;
-e $PROXY_CFG && !-r $PROXY_CFG and $urpm->{error}(N("can not read proxy settings (not enough rights to read %s)", $PROXY_CFG));
@@ -900,7 +900,7 @@ sub _all_options {
my %all_options = (
dir => "$urpm->{cachedir}/partial",
- proxy => get_proxy_($urpm, $medium),
+ proxy => get_proxy_($urpm),
metalink => $medium->{mirrorlist},
$medium->{"disable-certificate-check"} ? "no-certificate-check" : @{[]},
$urpm->{debug} ? (debug => $urpm->{debug}) : @{[]},