aboutsummaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
authorRémy CLOUARD <shikamaru@shikamaru.fr>2010-04-21 02:08:04 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2010-04-21 02:13:53 +0200
commit3e128752952d49738fdb8c21e617da3030d32d1a (patch)
tree7b9319fceff25b7593e2390ea5231aa8b9bc719e /widgets
parent64e5426985f7d0584c7855159c19eca7e431a67a (diff)
downloadvicious-legacy-3e128752952d49738fdb8c21e617da3030d32d1a.tar.xz
pkg: include Mandriva support
This commit adds support for mandriva tools in the pkg widget through the use of urpmq --auto-select. Note: this command only checks for hdlists files available on the computer. To get "live" statistics one should run urpmi.update which has to be run with higher privileges. Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Diffstat (limited to 'widgets')
-rw-r--r--widgets/pkg.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/pkg.lua b/widgets/pkg.lua
index 15389a9..3bc6807 100644
--- a/widgets/pkg.lua
+++ b/widgets/pkg.lua
@@ -25,7 +25,8 @@ local function worker(format, warg)
["Arch S"] = { cmd = "yes | pacman -Sup", sub = 2 },
["Debian"] = { cmd = "apt-show-versions -u -b" },
["Ubuntu"] = { cmd = "aptitude search '~U'" },
- ["Fedora"] = { cmd = "yum list updates", sub = 3 }
+ ["Fedora"] = { cmd = "yum list updates", sub = 3 },
+ ["Mandriva"]={ cmd = "urpmq --auto-select" }
}
-- Check if updates are available