diff options
-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}}, ]); |