diff options
-rw-r--r-- | urpm/media.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/media.pm b/urpm/media.pm index 61f2a6ba..58f2a7ae 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -1812,7 +1812,7 @@ sub update_those_media { $medium->{static} and next; my $unsubstituted_url = $medium->{url}; - $medium->{url} = urpm::cfg::expand_line($medium->{url}); + $medium->{url} = urpm::cfg::expand_line($medium->{url}) if $medium->{url}; my $rc = _update_medium($urpm, $medium, %options); $medium->{url} = $unsubstituted_url; $rc or return if !$options{allow_failures}; |