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>
This commit is contained in:
Rémy CLOUARD 2010-04-21 02:08:04 +02:00 committed by Adrian C. (anrxc)
parent 64e5426985
commit 3e12875295
1 changed files with 2 additions and 1 deletions

View File

@ -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