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:
parent
64e5426985
commit
3e12875295
|
@ -25,7 +25,8 @@ local function worker(format, warg)
|
||||||
["Arch S"] = { cmd = "yes | pacman -Sup", sub = 2 },
|
["Arch S"] = { cmd = "yes | pacman -Sup", sub = 2 },
|
||||||
["Debian"] = { cmd = "apt-show-versions -u -b" },
|
["Debian"] = { cmd = "apt-show-versions -u -b" },
|
||||||
["Ubuntu"] = { cmd = "aptitude search '~U'" },
|
["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
|
-- Check if updates are available
|
||||||
|
|
Loading…
Reference in New Issue