aboutsummaryrefslogtreecommitdiffstats
path: root/make-feed.lua
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2023-02-22 01:07:35 +0000
committergarret <garret@airmail.cc>2023-02-22 01:07:35 +0000
commit7144eb8d24b7e3c733e1458c2511afc53977ffc3 (patch)
tree738d2d58dbdb13ca50923acd1959ab3d53515fc0 /make-feed.lua
parentf1411b78348903f8de1bf13a02121b3f8fe3b819 (diff)
downloaddepctrl-feedmaker-master.tar.gz
depctrl-feedmaker-master.tar.bz2
depctrl-feedmaker-master.zip
fix error when a required module is just a stringHEADmaster
Diffstat (limited to 'make-feed.lua')
-rwxr-xr-xmake-feed.lua1
1 files changed, 1 insertions, 0 deletions
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