From b04f79db286bd863df7ff3ab776114361177ff4c Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 13 Dec 2012 10:42:56 +0000 Subject: (media_screen) display tooltips for update media too --- perl-install/install/any.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/install/any.pm') 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' }, }; -- cgit v1.2.1