diff options
author | Thierry Vignaud <tv@mageia.org> | 2013-05-17 03:51:52 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2013-05-17 03:51:52 +0000 |
commit | de33f1898663977ea739471e26082cedf836b3df (patch) | |
tree | 3d53d02ba3262c32bdb5f5692d647110a0658a0a /perl-install/install/any.pm | |
parent | 382c9a018293be81cd78c35b06b725de6c1c6923 (diff) | |
download | drakx-de33f1898663977ea739471e26082cedf836b3df.tar drakx-de33f1898663977ea739471e26082cedf836b3df.tar.gz drakx-de33f1898663977ea739471e26082cedf836b3df.tar.bz2 drakx-de33f1898663977ea739471e26082cedf836b3df.tar.xz drakx-de33f1898663977ea739471e26082cedf836b3df.zip |
save test value in a variable (needed for next commits)
Diffstat (limited to 'perl-install/install/any.pm')
-rw-r--r-- | perl-install/install/any.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/install/any.pm b/perl-install/install/any.pm index 2eb23195d..bf0393f6a 100644 --- a/perl-install/install/any.pm +++ b/perl-install/install/any.pm @@ -388,7 +388,8 @@ sub media_screen { my ($distribconf, $medium_path) = @{$_->{mediacfg}}; my @media_types = split(':', $distribconf->getvalue($medium_path, 'media_type')); my $parent = $distribconf->getvalue($distribconf->getvalue($medium_path, 'updates_for'), 'name'); - intersection(\@media_types, [ qw(backports debug source testing) ]) ? () : + my $non_regular_medium = intersection(\@media_types, [ qw(backports debug source testing) ]); + $non_regular_medium ? () : +{ val => \$medium->{temp_enabled}, type => 'bool', text => $name, help => $medium->{update} ? N("This medium provides package updates for medium \"%s\"", $parent) : $descriptions{$name}, |