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 | 3ea076a136b24834dae021af82de078d150f0445 (patch) | |
tree | 0744cafe7f9c57afb73661545854686a26249820 /perl-install/install/any.pm | |
parent | 967bd7c0b3d89cc98315118e724d82a6b51fb1ef (diff) | |
download | drakx-3ea076a136b24834dae021af82de078d150f0445.tar drakx-3ea076a136b24834dae021af82de078d150f0445.tar.gz drakx-3ea076a136b24834dae021af82de078d150f0445.tar.bz2 drakx-3ea076a136b24834dae021af82de078d150f0445.tar.xz drakx-3ea076a136b24834dae021af82de078d150f0445.zip |
(media_screen) merge grep into map (needed for next commit)
Diffstat (limited to 'perl-install/install/any.pm')
-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}}, ]); |