aboutsummaryrefslogtreecommitdiff
path: root/pacman.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-10-05 00:10:47 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-10-05 00:13:38 +0200
commitd81eed6d310bce28b3709980d80c433a04eefaae (patch)
tree3ab65939b04a86d22e39ad6a4a5ac3ab122257b8 /pacman.lua
parentc2b68ad3e78e366e611600f54dcfa8d760ed026f (diff)
downloadvicious-legacy-d81eed6d310bce28b3709980d80c433a04eefaae.tar.xz
Lots of coding style changes
Diffstat (limited to 'pacman.lua')
-rw-r--r--pacman.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/pacman.lua b/pacman.lua
index 73f9f03..aa2d974 100644
--- a/pacman.lua
+++ b/pacman.lua
@@ -7,6 +7,7 @@
local tonumber = tonumber
local io = { popen = io.popen }
local setmetatable = setmetatable
+--local string = { match = string.match }
-- }}}
@@ -24,7 +25,7 @@ local function worker(format)
for line in f:lines() do
-- Pacman 3.2 provides the number of available updates
- --updates = line:match("^Targets[%s]%(([%d]+)%)") or 0
+ --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