summaryrefslogtreecommitdiffstats
path: root/perl-install/install/media.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2010-06-11 17:24:53 +0000
committerOlivier Blin <oblin@mandriva.com>2010-06-11 17:24:53 +0000
commit21793e7bc5d1e270aaf2fa3c0f878f0373f31ff1 (patch)
tree4bc023e0f2a3cb2dd2493d6cfd18a4c12d669118 /perl-install/install/media.pm
parent4bca37fd1bfa5cb1a6fa9459dd0232bf60e5599e (diff)
downloaddrakx-21793e7bc5d1e270aaf2fa3c0f878f0373f31ff1.tar
drakx-21793e7bc5d1e270aaf2fa3c0f878f0373f31ff1.tar.gz
drakx-21793e7bc5d1e270aaf2fa3c0f878f0373f31ff1.tar.bz2
drakx-21793e7bc5d1e270aaf2fa3c0f878f0373f31ff1.tar.xz
drakx-21793e7bc5d1e270aaf2fa3c0f878f0373f31ff1.zip
simplify
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});