From 32517eb5e832588774c41e88eabfbcf9b021aa13 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Mon, 17 Aug 2009 13:51:06 +0000 Subject: don't attempt to expand empty media urls, fixes #52860 --- urpm/media.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'urpm/media.pm') 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}; -- cgit v1.2.1