summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-08-31 16:45:23 +0000
committerThierry Vignaud <tv@mageia.org>2012-08-31 16:45:23 +0000
commitccb2bd42f9decd08f4e682bedd74c026a3833289 (patch)
tree85baa53c3f91f5357ae413dea832312aedc5463c /urpm/download.pm
parentb465fbfe32709790039c93b80d85e12807ab11e5 (diff)
downloadurpmi-ccb2bd42f9decd08f4e682bedd74c026a3833289.tar
urpmi-ccb2bd42f9decd08f4e682bedd74c026a3833289.tar.gz
urpmi-ccb2bd42f9decd08f4e682bedd74c026a3833289.tar.bz2
urpmi-ccb2bd42f9decd08f4e682bedd74c026a3833289.tar.xz
urpmi-ccb2bd42f9decd08f4e682bedd74c026a3833289.zip
(get_proxy_) kill unused parameter
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}) : @{[]},