summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-05-17 03:51:52 +0000
committerThierry Vignaud <tv@mageia.org>2013-05-17 03:51:52 +0000
commit3e06f0715e57d82931311913fcd95f2c8b96d3ac (patch)
tree3d53d02ba3262c32bdb5f5692d647110a0658a0a
parentfdd91c0104722089582ffaac0c537f6ba4a76020 (diff)
downloaddrakx-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.pm3
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},