pkg: revert to pacman as default Arch method, checkupdates optional

Checkupdates is a good tool avoiding any need for period pacman -Sy
jobs from root crontab, however it works by maintaining its own
database in /tmp by default (and _that_ is a tmpfs by default) so on
every initialization it would stall awesome until it makes the first
sync. Better approach would be to keep its db inside $HOME for
persistence, and then to initiate the first (and longest) sync
manually before converting your package widgets to "Arch C".

All this is the reason I can't recommend it as the default right
now...
This commit is contained in:
Adrian C. (anrxc) 2013-11-02 18:14:07 +01:00
parent 01b2302659
commit 563cb6f5e8
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ local function worker(format, warg)
-- Initialize counters
local updates = 0
local manager = {
["Arch"] = { cmd = "checkupdates" },
["Arch"] = { cmd = "pacman -Qu" },
["Arch C"] = { cmd = "checkupdates" },
["Arch S"] = { cmd = "yes | pacman -Sup", sub = 1 },
["Debian"] = { cmd = "apt-show-versions -u -b" },
["Ubuntu"] = { cmd = "aptitude search '~U'" },