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