From 3e128752952d49738fdb8c21e617da3030d32d1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20CLOUARD?= Date: Wed, 21 Apr 2010 02:08:04 +0200 Subject: [PATCH] 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) --- widgets/pkg.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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