summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index df204f06..d12f28fb 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -137,7 +137,7 @@ sub get_proxy {
};
local (*F, $_);
# open F, "$ENV{HOME}/.wgetrc" or return;
- open F, "/etc/urpmi/proxy.cfg" or return;
+ open F, "/etc/urpmi/proxy.cfg" or return undef;
while (<F>) {
chomp; s/#.*$//; s/^\s*//; s/\s*$//;
/^http_proxy\s*=\s*(.*)$/ and $proxy->{http_proxy} = $1, next;