summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-27 17:25:50 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-27 17:25:50 +0000
commit02a375220725572f0c536b419001ba398377f683 (patch)
treef78b092678d12a177ecf105d472fd48be146209c
parent30a82004ea7f8aaca29a2d30d096a67551f6e240 (diff)
downloadmgaonline-02a375220725572f0c536b419001ba398377f683.tar
mgaonline-02a375220725572f0c536b419001ba398377f683.tar.gz
mgaonline-02a375220725572f0c536b419001ba398377f683.tar.bz2
mgaonline-02a375220725572f0c536b419001ba398377f683.tar.xz
mgaonline-02a375220725572f0c536b419001ba398377f683.zip
(harvester) advertize when one has extended maintenance when regular
one is expired
-rw-r--r--NEWS2
-rwxr-xr-xmdkapplet14
2 files changed, 15 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 603c3080..49f75af4 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@
o fix adding media on 2008.0 where --xml-info option is not supported
o fix getting password when not embedded in mcc
- mdkapplet
+ o advertize when one has extended maintenance when regular one is
+ expired
o better notification message for no longuer supported distro
Version 2.77.15.3 - 26 January 2010, Thierry Vignaud
diff --git a/mdkapplet b/mdkapplet
index 0f6b4c97..fd0a0c01 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -106,6 +106,12 @@ my %state = (
urgency => 'low',
tt => []
},
+ extended_support_is_enabled => {
+ colour => [ 'okay' ],
+ menu => [ 'check' ],
+ urgency => 'low',
+ tt => []
+ },
unconfigured_restricted_media => {
colour => [ 'bundle' ],
menu => [ 'add_restricted_media', 'check' ],
@@ -364,8 +370,14 @@ sub harvester {
# busy critical delayed disabled disconnected locked loop_locked new_distribution no_enabled_medium no_enterprise_update_medium no_more_supported no_update_medium notsupported okay unconfigured_restricted_media update
if (!member($sub_state, qw(okay))) {
go2State($sub_state);
- } elsif ($no_more_supported) {
+ } elsif ($no_more_supported && !text2bool($config{EXTENDED_SUPPORT})) {
go2State('no_more_supported');
+ } elsif ($no_more_supported && text2bool($config{EXTENDED_SUPPORT})
+ && !text2bool($local_config{EXTENDED_SUPPORT_SPLASHED})) {
+ $state{extended_support_is_enabled}{tt}[0] =
+ N("Basic maintenance for this distribution has expired. Thanks to your subscription to extended maintenance, your system will be kept up to date until %s", iso8601_date_to_locale($extended_maintenance_end));
+ go2State('extended_support_is_enabled');
+ setVar('EXTENDED_SUPPORT_SPLASHED', bool2yesno(1));
} elsif ($new_distro && is_false($config{DO_NOT_ASK_FOR_DISTRO_UPGRADE})
&& is_false($local_config{DO_NOT_ASK_FOR_DISTRO_UPGRADE})) {
go2State('new_distribution');