summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rdalverny@mandriva.org>2004-09-21 01:46:18 +0000
committerRomain d'Alverny <rdalverny@mandriva.org>2004-09-21 01:46:18 +0000
commitd6455780c3e3ded0cfc1dfddbdb6b1b24d16b58f (patch)
tree27cee9722e8845a20f4485c37813c9e8bea4e3e2
parent330838dd9923b383d4e364483801cb9828942a94 (diff)
downloadmgaonline-d6455780c3e3ded0cfc1dfddbdb6b1b24d16b58f.tar
mgaonline-d6455780c3e3ded0cfc1dfddbdb6b1b24d16b58f.tar.gz
mgaonline-d6455780c3e3ded0cfc1dfddbdb6b1b24d16b58f.tar.bz2
mgaonline-d6455780c3e3ded0cfc1dfddbdb6b1b24d16b58f.tar.xz
mgaonline-d6455780c3e3ded0cfc1dfddbdb6b1b24d16b58f.zip
Added 'not supported release' state (returned codes 94, 95)
-rwxr-xr-xmdkapplet9
1 files changed, 9 insertions, 0 deletions
diff --git a/mdkapplet b/mdkapplet
index 90f1fe31..f4f56992 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -96,6 +96,13 @@ my %state = (
menu => [ 'configureApplet', 'weblink' ],
tt => [ N_("Service is not activated. Please click on \"Online Website\"") ]
}
+ notsupported => {
+ colour => [ 'disabled' ],
+ changes => [ 'okay', 'busy', 'critical', 'error' ],
+ menu => [ 'configureApplet', 'weblink' ],
+ tt => [ N_("Release not supported (too old release, or development release)") ]
+ }
+
);
my %actions = (
'update' => { name => N("Install updates"), launch => sub { installUpdates() } },
@@ -243,6 +250,8 @@ sub silentCheck {
}
!$comp and okState();
},
+ 94 => sub { logIt(N("Development release not supported by service")); go2State('notsupported'); },
+ 95 => sub { logIt(N("Too old release not supported by service")); go2State('notsupported'); },
96 => sub { logIt(N("Unknown state")) ; go2State('okay') },
97 => sub { logIt(N("Online services disabled. Contact Mandrakeonline site\n")) ; go2State('disabled'); },
98 => sub { logIt(N("Wrong Password.\n")); go2State('critical'); },