From 4dad2e360c1c464feef9a8aaff6e96a7636c54b7 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Sun, 14 Mar 2010 03:37:40 +0100 Subject: API: missing warg should not break awesome --- widgets/pkg.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'widgets/pkg.lua') 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 -- cgit v1.2.3