From f86b22ab4262420b5d958ef4ba90a3a5ddbc19e7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 24 May 2013 20:56:26 +0000 Subject: prevent mga#10254 bug to ever happen again --- urpm/media.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/urpm/media.pm b/urpm/media.pm index e3eafdbf..d85567d8 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -780,6 +780,7 @@ sub is_media_to_add_by_default { my ($urpm, $distribconf, $medium, $product_id, $nonfree, $tainted) = @_; my $add_by_default = !$distribconf->getvalue($medium, 'noauto'); my @media_types = split(':', $distribconf->getvalue($medium, 'media_types')); + return $add_by_default if !@media_types; if ($product_id->{product} eq 'Free') { if (member('non-free', @media_types)) { $urpm->{log}(N("ignoring non-free medium `%s'", $medium)); -- cgit v1.2.1