From d15dc371d6c3077a94afea361dfaf8c9450644f2 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 11 Aug 2009 09:29:55 +0000 Subject: take into account $RELEASE, $ARCH in urls passed to urpmi.addmedia Fixes bug #52276 --- urpm/media.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/urpm/media.pm b/urpm/media.pm index 92e46c9e..ca37f0fc 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -1668,7 +1668,10 @@ sub update_those_media { #- don't ever update static media $medium->{static} and next; + my $unsubstituted_url = $medium->{url}; + $medium->{url} = urpm::cfg::expand_line($medium->{url}); my $rc = _update_medium($urpm, $medium, %options); + $medium->{url} = $unsubstituted_url; $rc or return if !$options{allow_failures}; $updates_result{$rc || 'error'}++; } -- cgit v1.2.1