summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-27 14:59:59 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-27 14:59:59 +0000
commit629897a898b8a62ec517077684e48e547eef3ee8 (patch)
treeb5ae2db552531440df1b7b4fa9dae76fab657422
parente6a2cc92999a59010ddab204d1b3e27a4c5dd347 (diff)
downloadmgaonline-629897a898b8a62ec517077684e48e547eef3ee8.tar
mgaonline-629897a898b8a62ec517077684e48e547eef3ee8.tar.gz
mgaonline-629897a898b8a62ec517077684e48e547eef3ee8.tar.bz2
mgaonline-629897a898b8a62ec517077684e48e547eef3ee8.tar.xz
mgaonline-629897a898b8a62ec517077684e48e547eef3ee8.zip
(refresh_no_more_supported_msg) better message according to case
-rw-r--r--NEWS3
-rwxr-xr-xmdkapplet22
2 files changed, 24 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 155a68f9..2cf99a30 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- mdkapplet
+ o better notification message for no longuer supported distro
+
Version 2.77.15.3 - 26 January 2010, Thierry Vignaud
- mdkapplet-extended-maintenance-helper
diff --git a/mdkapplet b/mdkapplet
index 8ee99bbd..5aca5ba5 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -104,7 +104,7 @@ my %state = (
colour => [ 'disabled' ],
menu => [ 'upgrade_distro', 'check' ],
urgency => 'low',
- tt => [ N("This version of the distribution is no longer supported. There will be no further updates. You should upgrade to a newer version of the %s distribution.", N("Mandriva Linux")) ]
+ tt => []
},
unconfigured_restricted_media => {
colour => [ 'bundle' ],
@@ -307,6 +307,7 @@ sub is_there_a_new_distributions() {
my $current_apimdv_distro = find_current_distro(@distros);
$no_more_supported = $current_apimdv_distro->{obsoleted_by};
($extended_maintenance_url, $extended_maintenance_end) = @$current_apimdv_distro{qw(extended-maintenance extended-maintenance-end)};
+ refresh_no_more_supported_msg();
if ($no_more_supported) {
$new_distro = find { $_->{version} eq $no_more_supported } @distros;
return;
@@ -450,6 +451,25 @@ sub _get_obsolete_message() {
);
}
+sub refresh_no_more_supported_msg() {
+ my $basic_msg = N("This version of the distribution is no longer supported. There will be no further updates.");
+ my $distro = N("Mandriva Linux");
+ my $msg;
+
+ # is extended maintenance available?
+ if ($extended_maintenance_url) {
+ if ($no_more_supported eq 'none') {
+ $msg = N("You should get extended maintenance.");
+ } else {
+ $msg = N("You should either get extended maintenance or upgrade to a newer version of the %s distribution.",
+ $distro);
+ }
+ } else {
+ $msg = N("You should upgrade to a newer version of the %s distribution.", $distro);
+ }
+ $state{no_more_supported}{tt}[0] = join(' ', $basic_msg, $msg);
+}
+
sub no_more_supported_choice() {
local $mygtk2::left_padding = 0;
my $warn_me = text2bool($local_config{DO_NOT_ASK_FOR_NO_MORE_SUPPORTED});