summaryrefslogtreecommitdiffstats
path: root/perl-install/install/any.pm
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
commitde33f1898663977ea739471e26082cedf836b3df (patch)
tree3d53d02ba3262c32bdb5f5692d647110a0658a0a /perl-install/install/any.pm
parent382c9a018293be81cd78c35b06b725de6c1c6923 (diff)
downloaddrakx-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.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},