diff options
author | Rémy CLOUARD <shikamaru@shikamaru.fr> | 2010-04-21 02:08:04 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-04-21 02:13:53 +0200 |
commit | 3e128752952d49738fdb8c21e617da3030d32d1a (patch) | |
tree | 7b9319fceff25b7593e2390ea5231aa8b9bc719e | |
parent | 64e5426985f7d0584c7855159c19eca7e431a67a (diff) | |
download | vicious-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>
-rw-r--r-- | widgets/pkg.lua | 3 |
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 |