summaryrefslogtreecommitdiffstats
path: root/mgaapplet.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-12-21 02:04:00 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-12-21 03:26:41 +0100
commit1455583f43808bc43fb0ade94aa770e84f62276f (patch)
tree3ec92a0a443e0b6543bd729e84a15f17fdffd293 /mgaapplet.pm
parentf2900d02fe5a5176db7649ad8920f4cecc4eea5a (diff)
downloadmgaonline-1455583f43808bc43fb0ade94aa770e84f62276f.tar
mgaonline-1455583f43808bc43fb0ade94aa770e84f62276f.tar.gz
mgaonline-1455583f43808bc43fb0ade94aa770e84f62276f.tar.bz2
mgaonline-1455583f43808bc43fb0ade94aa770e84f62276f.tar.xz
mgaonline-1455583f43808bc43fb0ade94aa770e84f62276f.zip
split mgaapplet module
(needed for next commit)
Diffstat (limited to 'mgaapplet.pm')
-rw-r--r--mgaapplet.pm47
1 files changed, 47 insertions, 0 deletions
diff --git a/mgaapplet.pm b/mgaapplet.pm
new file mode 100644
index 00000000..faabfc75
--- /dev/null
+++ b/mgaapplet.pm
@@ -0,0 +1,47 @@
+package mgaapplet;
+
+use Exporter;
+use lib qw(/usr/lib/libDrakX);
+use common;
+our @ISA = 'Exporter';
+our @EXPORT = qw(%comm_codes);
+
+our %comm_codes = (
+ locked => {
+ code => 2,
+ status => 'locked',
+ log => "urpmi database locked, skipping updating urpmi database",
+ },
+ error_updating => {
+ code => 3,
+ status => 'critical',
+ log => N_("Error updating media"),
+ },
+ no_update_medium => {
+ code => 4,
+ status => 'no_update_medium',
+ log => "no update media configured",
+ },
+ no_enabled_medium => {
+ code => 5,
+ status => 'no_enabled_medium',
+ log => "all update media are disabled",
+ },
+ updates => {
+ code => 6,
+ status => 'updates',
+ log => "Checking... Updates are available\n\n",
+ },
+ uptodate => {
+ code => 7,
+ status => 'okay',
+ log => "Packages are up to date\n",
+ },
+ db_not_open => {
+ code => 8,
+ status => 'critical',
+ log => "Failed to open urpmi database\n",
+ },
+);
+
+1;