diff options
Diffstat (limited to 'urpm/download.pm')
-rw-r--r-- | urpm/download.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/urpm/download.pm b/urpm/download.pm index 81a45f93..ace58c44 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -116,9 +116,13 @@ sub get_proxy (;$) { sub copy_cmd_line_proxy { my ($media) = @_; return unless $media; + load_proxy_config(); if (defined $proxy_config->{cmd_line}) { $proxy_config->{$media} = $proxy_config->{cmd_line}; dump_proxy_config(); + } else { + #- use default if available + $proxy_config->{$media} = $proxy_config->{''}; } } |