diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-12-13 10:42:53 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-12-13 10:42:53 +0000 |
commit | 9673f1fe2a5a98b6719dbbe576dad6fb36c17ed8 (patch) | |
tree | 0744cafe7f9c57afb73661545854686a26249820 /perl-install | |
parent | e7ea29e15aa8b6423ab9920321de269780fcec44 (diff) | |
download | drakx-backup-do-not-use-9673f1fe2a5a98b6719dbbe576dad6fb36c17ed8.tar drakx-backup-do-not-use-9673f1fe2a5a98b6719dbbe576dad6fb36c17ed8.tar.gz drakx-backup-do-not-use-9673f1fe2a5a98b6719dbbe576dad6fb36c17ed8.tar.bz2 drakx-backup-do-not-use-9673f1fe2a5a98b6719dbbe576dad6fb36c17ed8.tar.xz drakx-backup-do-not-use-9673f1fe2a5a98b6719dbbe576dad6fb36c17ed8.zip |
(media_screen) merge grep into map (needed for next commit)
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/install/any.pm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/perl-install/install/any.pm b/perl-install/install/any.pm index 89e6c03fe..82aaad4c9 100644 --- a/perl-install/install/any.pm +++ b/perl-install/install/any.pm @@ -369,16 +369,15 @@ sub media_screen { my $medium = $_; $medium->{temp_enabled} = !$medium->{ignore}; my $name = $medium->{name}; + my ($distribconf, $medium_path) = @{$_->{mediacfg}}; + my @media_types = split(':', $distribconf->getvalue($medium_path, 'media_type')); + intersection(\@media_types, [ qw(backports debug source testing) ]) ? () : +{ val => \$medium->{temp_enabled}, type => 'bool', text => $name, help => $descriptions{$name}, # 'Core Release' cannot be unselected: disabled => sub { $name eq 'Core Release' }, }; - } grep { - my ($distribconf, $medium_path) = @{$_->{mediacfg}}; - my @media_types = split(':', $distribconf->getvalue($medium_path, 'media_type')); - !intersection(\@media_types, [ qw(backports debug source testing) ]); } @{$urpm->{media}}, ]); |