From 563cb6f5e85c50771cc859b02970148d5c416efb Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Sat, 2 Nov 2013 18:14:07 +0100 Subject: 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... --- widgets/pkg.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widgets/pkg.lua b/widgets/pkg.lua index e786099..f552b9f 100644 --- a/widgets/pkg.lua +++ b/widgets/pkg.lua @@ -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'" }, -- cgit v1.2.3