summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-27 17:25:31 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-27 17:25:31 +0000
commit5ef344820697f8a6e07359bf9b29b969c7ce37b0 (patch)
tree834ffbed760287a4e45efbe0bae6c86a00715baf /mdkapplet
parent4a5d39de7070bcfa6410ded1c642ceafd30d14b4 (diff)
downloadmgaonline-5ef344820697f8a6e07359bf9b29b969c7ce37b0.tar
mgaonline-5ef344820697f8a6e07359bf9b29b969c7ce37b0.tar.gz
mgaonline-5ef344820697f8a6e07359bf9b29b969c7ce37b0.tar.bz2
mgaonline-5ef344820697f8a6e07359bf9b29b969c7ce37b0.tar.xz
mgaonline-5ef344820697f8a6e07359bf9b29b969c7ce37b0.zip
(is_extmaint_supported) factorize test for extended maintenance and
alter it btw
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdkapplet b/mdkapplet
index 5a056b7b..eb7c2eab 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -461,7 +461,7 @@ sub refresh_no_more_supported_msg() {
my $msg;
# is extended maintenance available?
- if ($extended_maintenance_url) {
+ if (is_extmaint_supported()) {
if ($no_more_supported eq 'none') {
$msg = N("You should get extended maintenance.");
} else {
@@ -481,13 +481,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 = $extended_maintenance_url ? 'extended' : ($no_more_supported ne 'none' ? 'upgrade' : undef);
+ my $choice = is_extmaint_supported() ? 'extended' : ($no_more_supported ne 'none' ? 'upgrade' : undef);
my @widgets = (
get_banner(),
gtknew('Label_Left',
text => get_obsolete_message() . "\n", @common),
- if_($extended_maintenance_url,
+ if_(is_extmaint_supported(),
$b1 = gtknew('RadioButton',
text => N("Purchase a maintenance extension for this version (%s) and keep it running until.", $product_id->{version}),
toggled => sub {