summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-28 07:25:32 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-28 07:25:32 +0000
commitaaf848ee14feb7a2b32975c9d7ef47157e6d7e43 (patch)
treeea34844f29c9dab0f75d5f5c9531a48cf590e406
parente5cdb9131ef60e317501ecc49c96506260c3c7b4 (diff)
downloadmgaonline-aaf848ee14feb7a2b32975c9d7ef47157e6d7e43.tar
mgaonline-aaf848ee14feb7a2b32975c9d7ef47157e6d7e43.tar.gz
mgaonline-aaf848ee14feb7a2b32975c9d7ef47157e6d7e43.tar.bz2
mgaonline-aaf848ee14feb7a2b32975c9d7ef47157e6d7e43.tar.xz
mgaonline-aaf848ee14feb7a2b32975c9d7ef47157e6d7e43.zip
(refresh_no_more_supported_msg,no_more_supported_choice) fix testing
for availability of extended maintenance (basically reverting part of r265341)
-rw-r--r--NEWS3
-rwxr-xr-xmdkapplet6
2 files changed, 6 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index ea3ac8d0..e7683c78 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- mdkapplet
+ o fix a test
+
Version 2.77.15.4 - 27 January 2010, Thierry Vignaud
- mdkapplet-extended-maintenance-helper
diff --git a/mdkapplet b/mdkapplet
index fd6b542c..dad5cf9d 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -473,7 +473,7 @@ sub refresh_no_more_supported_msg() {
my $msg;
# is extended maintenance available?
- if (is_extmaint_supported()) {
+ if ($extended_maintenance_url) {
if ($no_more_supported eq 'none') {
$msg = N("You should get extended maintenance.");
} else {
@@ -493,13 +493,13 @@ sub no_more_supported_choice() {
local $mdkapplet_gui::width = 580;
my $w = new_portable_dialog(N("Your distribution is no longer supported"));
my ($b1, $b2, $b3);
- my $choice = is_extmaint_supported() ? 'extended' : ($no_more_supported ne 'none' ? 'upgrade' : undef);
+ my $choice = $extended_maintenance_url ? 'extended' : ($no_more_supported ne 'none' ? 'upgrade' : undef);
my @widgets = (
get_banner(),
gtknew('Label_Left',
text => get_obsolete_message() . "\n", @common),
- if_(is_extmaint_supported(),
+ if_($extended_maintenance_url,
$b1 = gtknew('RadioButton',
text => N("Purchase a maintenance extension for this version (%s) and keep it running until.", $product_id->{version}),
toggled => sub {