From 7144eb8d24b7e3c733e1458c2511afc53977ffc3 Mon Sep 17 00:00:00 2001 From: garret Date: Wed, 22 Feb 2023 01:07:35 +0000 Subject: fix error when a required module is just a string --- make-feed.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'make-feed.lua') diff --git a/make-feed.lua b/make-feed.lua index 18cb355..98a28e5 100755 --- a/make-feed.lua +++ b/make-feed.lua @@ -350,6 +350,7 @@ local function clean_depctrl(depctrl) local feeds = {} if depctrl == nil or #depctrl == 0 then return nil end for _, mod in ipairs(depctrl) do + if type(mod) == "string" then mod = {mod} end if type(mod[1]) ~= "string" then mod = mod[1] end local modname = mod[1] mod["moduleName"] = modname -- cgit v1.2.3-70-g09d2