aboutsummaryrefslogtreecommitdiffstats
path: root/make-feed.lua
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2022-12-01 00:50:07 +0000
committergarret <garret@airmail.cc>2023-02-16 05:34:26 +0000
commit527484dd7018a8f2a3e31878fd8ca28b810e5d8a (patch)
treee4a8e3ce8924239d11f1de482b76d6e95445c3e1 /make-feed.lua
parent94924c21511407ecfb99603b31c85b1a0a6be31f (diff)
downloaddepctrl-feedmaker-527484dd7018a8f2a3e31878fd8ca28b810e5d8a.tar.gz
depctrl-feedmaker-527484dd7018a8f2a3e31878fd8ca28b810e5d8a.tar.bz2
depctrl-feedmaker-527484dd7018a8f2a3e31878fd8ca28b810e5d8a.zip
very fucked
Diffstat (limited to 'make-feed.lua')
-rwxr-xr-xmake-feed.lua22
1 files changed, 14 insertions, 8 deletions
diff --git a/make-feed.lua b/make-feed.lua
index e79500c..044a40b 100755
--- a/make-feed.lua
+++ b/make-feed.lua
@@ -198,10 +198,6 @@ local function get_macro_metadata(file)
local macro = run_file(file, meta.extension)
if macro == nil then return nil end
- if config.macros.ignoreCondition(macro) then
- err(file .. ": ignored by config, skipping")
- return nil
- end
meta.name = macro.script_name
meta.description = macro.script_description
meta.version = macro.script_version
@@ -209,6 +205,12 @@ local function get_macro_metadata(file)
meta.namespace = macro.script_namespace
meta.changelog = macro.script_changelog
meta.depctrl = macro.__feedmaker_version
+
+ if config.macros.ignoreCondition(meta) then
+ err(file .. ": ignored by config, skipping")
+ return nil
+ end
+ err(meta)
return meta
end
@@ -221,16 +223,19 @@ local function get_module_metadata(file)
local mod = run_file(file, meta.extension)
if mod == nil then return nil end
- if config.modules.ignoreCondition(mod) then
- err(file .. ": ignored by config, skipping")
- return nil
- end
+
local depctrl = mod.__feedmaker_version
meta.name = depctrl.name
meta.version = depctrl.version
meta.author = depctrl.author
meta.namespace = depctrl.moduleName
meta.depctrl = depctrl[1]
+
+ if config.modules.ignoreCondition(meta) then
+ err(file .. ": ignored by config, skipping")
+ return nil
+ end
+
return meta
end
@@ -291,6 +296,7 @@ local function make_feed(meta)
for _, script in ipairs(meta.modules) do
local mod, feeds = get_feed_entry(script, config.modules.fileBaseUrl)
feed.knownFeeds = join_ktables(feed.knownFeeds, feeds)
+ err(script)
feed.modules[script.namespace] = mod
end
end