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 | 3e06f0715e57d82931311913fcd95f2c8b96d3ac (patch) | |
tree | 3d53d02ba3262c32bdb5f5692d647110a0658a0a | |
parent | fdd91c0104722089582ffaac0c537f6ba4a76020 (diff) | |
download | drakx-backup-do-not-use-3e06f0715e57d82931311913fcd95f2c8b96d3ac.tar drakx-backup-do-not-use-3e06f0715e57d82931311913fcd95f2c8b96d3ac.tar.gz drakx-backup-do-not-use-3e06f0715e57d82931311913fcd95f2c8b96d3ac.tar.bz2 drakx-backup-do-not-use-3e06f0715e57d82931311913fcd95f2c8b96d3ac.tar.xz drakx-backup-do-not-use-3e06f0715e57d82931311913fcd95f2c8b96d3ac.zip |
save test value in a variable (needed for next commits)
-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}, |