From c9e1ae1c9a310d2d1f237646ed381632cf071d4a Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 29 Jun 2004 07:16:51 +0000 Subject: Support for setting proxy per-media in proxy.cfg --- urpmi.addmedia | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'urpmi.addmedia') diff --git a/urpmi.addmedia b/urpmi.addmedia index 3a8fc082..7efd2a6e 100755 --- a/urpmi.addmedia +++ b/urpmi.addmedia @@ -133,7 +133,14 @@ sub main { unlink "$urpm->{cachedir}/partial/$basename"; eval { $urpm->{log}(N("retrieving mirrors at %s ...", $options{from})); - $urpm->{sync}({ dir => "$urpm->{cachedir}/partial", quiet => 1, proxy => $urpm->{proxy} }, $options{from}); + $urpm->{sync}( + { + dir => "$urpm->{cachedir}/partial", + quiet => 1, + proxy => get_proxy(), + }, + $options{from}, + ); $urpm->{log}(N("...retrieving done")); }; $@ and $urpm->{log}(N("...retrieving failed: %s", $@)); -- cgit v1.2.1