aboutsummaryrefslogtreecommitdiffstats
path: root/make-feed.lua
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2022-12-01 00:12:57 +0000
committergarret <garret@airmail.cc>2023-02-16 05:34:26 +0000
commitec034bd2f10ebdc7a0994a48a1fb613ad4a91f4d (patch)
treeddc2d80704a41a4265a378bc622485df4bdf9a5f /make-feed.lua
parentd13ae55fd2d4e0d0991da9b01fe01100f714d12c (diff)
downloaddepctrl-feedmaker-ec034bd2f10ebdc7a0994a48a1fb613ad4a91f4d.tar.gz
depctrl-feedmaker-ec034bd2f10ebdc7a0994a48a1fb613ad4a91f4d.tar.bz2
depctrl-feedmaker-ec034bd2f10ebdc7a0994a48a1fb613ad4a91f4d.zip
some more error handling in clean_depctrl
Diffstat (limited to 'make-feed.lua')
-rwxr-xr-xmake-feed.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/make-feed.lua b/make-feed.lua
index 8be2454..e79500c 100755
--- a/make-feed.lua
+++ b/make-feed.lua
@@ -237,7 +237,7 @@ end
local function clean_depctrl(depctrl)
local required = {}
local feeds = {}
- if #depctrl == 0 then return nil end
+ if depctrl == nil or #depctrl == 0 then return nil end
for _, mod in ipairs(depctrl) do
if type(mod[1]) ~= "string" then mod = mod[1] end
local modname = mod[1]