diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-10-05 00:10:47 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-10-05 00:10:47 +0200 |
commit | 4602ca2fa5e8e2e408713f72ae7e4cd14480bc01 (patch) | |
tree | bfbf75b8afd738f5a036737404f3eafe87586c66 /pacman.lua | |
parent | af4e85f99d0ac63127f19640ef47d768d7bed7cd (diff) | |
download | vicious-legacy-4602ca2fa5e8e2e408713f72ae7e4cd14480bc01.tar.xz |
Lots of coding style changes
Diffstat (limited to 'pacman.lua')
-rw-r--r-- | pacman.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |