diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-03-14 03:37:40 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-03-14 03:37:40 +0100 |
commit | 4dad2e360c1c464feef9a8aaff6e96a7636c54b7 (patch) | |
tree | 03290f705cef2ec761a0a1ee46b3bc38cb08e0ea /widgets/pkg.lua | |
parent | 237470c8f45190b213e3a173ce6ae1a74b3e11fe (diff) | |
download | vicious-legacy-4dad2e360c1c464feef9a8aaff6e96a7636c54b7.tar.xz |
API: missing warg should not break awesome
Diffstat (limited to 'widgets/pkg.lua')
-rw-r--r-- | widgets/pkg.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/pkg.lua b/widgets/pkg.lua index fa2375b..d514e33 100644 --- a/widgets/pkg.lua +++ b/widgets/pkg.lua @@ -15,7 +15,9 @@ module("vicious.widgets.pkg") -- {{{ Packages widget type -local function worker(format, dist) +local function worker(format, warg) + if not warg then return end + -- Initialise counters local updates = 0 local manager = { @@ -26,7 +28,7 @@ local function worker(format, dist) } -- Check if updates are available - local pkg = manager[dist] + local pkg = manager[warg] local f = io.popen(pkg.cmd) for line in f:lines() do |