From 21793e7bc5d1e270aaf2fa3c0f878f0373f31ff1 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 11 Jun 2010 17:24:53 +0000 Subject: simplify --- perl-install/install/media.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'perl-install/install') diff --git a/perl-install/install/media.pm b/perl-install/install/media.pm index 6e555fd7b..93761008a 100644 --- a/perl-install/install/media.pm +++ b/perl-install/install/media.pm @@ -669,9 +669,7 @@ sub get_media_cfg { urpm::media::add_distrib_media($packages, undef, $uri, ask_media => undef); #allmedia => 1 - if (defined $selected_names) { - select_only_some_media($packages, $selected_names); - } + select_only_some_media($packages, $selected_names) if defined $selected_names; if ($deselectionAllowed && !@{$packages->{media}}) { my $allow = _allow_copy_rpms_on_disk($phys_medium, $packages->{media}); -- cgit v1.2.1