diff options
author | Thierry Vignaud <tv@mandriva.org> | 2010-01-27 17:25:50 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2010-01-27 17:25:50 +0000 |
commit | 02a375220725572f0c536b419001ba398377f683 (patch) | |
tree | f78b092678d12a177ecf105d472fd48be146209c | |
parent | 30a82004ea7f8aaca29a2d30d096a67551f6e240 (diff) | |
download | mgaonline-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-- | NEWS | 2 | ||||
-rwxr-xr-x | mdkapplet | 14 |
2 files changed, 15 insertions, 1 deletions
@@ -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 @@ -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'); |