aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2013-11-02 18:14:07 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2013-11-02 18:14:07 +0100
commit563cb6f5e85c50771cc859b02970148d5c416efb (patch)
tree73910a03f7b929b741785df8e7c595da10fa9be2
parent01b2302659426090a96ce2f1f4cc07d509381d21 (diff)
downloadvicious-legacy-563cb6f5e85c50771cc859b02970148d5c416efb.tar.xz
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...
-rw-r--r--widgets/pkg.lua3
1 files changed, 2 insertions, 1 deletions
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'" },