diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-01-01 17:29:24 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-01-01 17:29:24 +0100 |
commit | 9e372251c8e1f73b99150acaf8dc177fa739b667 (patch) | |
tree | 75b00d69dc0aa1d4bbb6a115f879fa8bc35c064c /pacman.lua | |
parent | cedf1711bfc303df8e9ece67e5d313dba188b258 (diff) | |
download | vicious-legacy-9e372251c8e1f73b99150acaf8dc177fa739b667.tar.xz |
pacman: remove 3.2 example, add ignores+deps example
Diffstat (limited to 'pacman.lua')
-rw-r--r-- | pacman.lua | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -22,16 +22,10 @@ local function worker(format) -- Check if updates are available local f = io.popen("pacman -Qu") + -- Exclude IgnorePkg and count deps + --local f = io.popen("pacman -Sup") for line in f:lines() do - -- Pacman 3.2 provides the number of available updates - --updates = string.match(line, "^Targets[%s]%(([%d]+)%)") or 0 - ---- If the count changed then break out of the loop - --if tonumber(updates) > 0 then - -- break - --end - - -- Pacman 3.3 returns one line per package updates = updates + 1 end f:close() |