summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm')
-rw-r--r--urpm/media.pm3
1 files changed, 3 insertions, 0 deletions
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'}++;
}