diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-12-13 10:42:56 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-12-13 10:42:56 +0000 |
commit | b04f79db286bd863df7ff3ab776114361177ff4c (patch) | |
tree | 300366404a6b427f31c72dd6fbfbcad848f23523 | |
parent | 3ea076a136b24834dae021af82de078d150f0445 (diff) | |
download | drakx-b04f79db286bd863df7ff3ab776114361177ff4c.tar drakx-b04f79db286bd863df7ff3ab776114361177ff4c.tar.gz drakx-b04f79db286bd863df7ff3ab776114361177ff4c.tar.bz2 drakx-b04f79db286bd863df7ff3ab776114361177ff4c.tar.xz drakx-b04f79db286bd863df7ff3ab776114361177ff4c.zip |
(media_screen) display tooltips for update media too
-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 82aaad4c9..4a4be81c2 100644 --- a/perl-install/install/any.pm +++ b/perl-install/install/any.pm @@ -371,10 +371,11 @@ sub media_screen { my $name = $medium->{name}; my ($distribconf, $medium_path) = @{$_->{mediacfg}}; my @media_types = split(':', $distribconf->getvalue($medium_path, 'media_type')); + my $parent = $distribconf->getvalue($medium_path, 'updates_for'); intersection(\@media_types, [ qw(backports debug source testing) ]) ? () : +{ val => \$medium->{temp_enabled}, type => 'bool', text => $name, - help => $descriptions{$name}, + help => $medium->{update} ? N("This medium provides package updates for medium \"%s\"", $parent) : $descriptions{$name}, # 'Core Release' cannot be unselected: disabled => sub { $name eq 'Core Release' }, }; |