aboutsummaryrefslogtreecommitdiffstats
path: root/make-feed.lua
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2023-02-22 00:39:33 +0000
committergarret <garret@airmail.cc>2023-02-22 00:39:33 +0000
commitf1411b78348903f8de1bf13a02121b3f8fe3b819 (patch)
tree3970041c257b26c6f41854cd2881fe49ac50841d /make-feed.lua
parentcbeb5e1a7adbede58826887df5a7d31d6f3a0536 (diff)
downloaddepctrl-feedmaker-f1411b78348903f8de1bf13a02121b3f8fe3b819.tar.gz
depctrl-feedmaker-f1411b78348903f8de1bf13a02121b3f8fe3b819.tar.bz2
depctrl-feedmaker-f1411b78348903f8de1bf13a02121b3f8fe3b819.zip
hack to make depctrl version grabbing actually work
i thought setting a global in fake depctrl would set it in the script's environment, not feedmaker's this seems to not be the case
Diffstat (limited to 'make-feed.lua')
-rwxr-xr-xmake-feed.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/make-feed.lua b/make-feed.lua
index 370c6a7..18cb355 100755
--- a/make-feed.lua
+++ b/make-feed.lua
@@ -271,7 +271,6 @@ local function run_file(file, extension)
require = sandbox_require,
aegisub = fake_aegisub(),
- _feedmaker_version = {}
}
if extension == "moon" then
@@ -294,6 +293,8 @@ local function get_macro_metadata(file)
meta.sha1, meta.release = get_file_metadata(file)
meta.basename, meta.extension = split_filename(file)
+ __feedmaker_version = nil
+
function include() end -- so it doesnt die with karaskel imports and such
local macro = run_file(file, meta.extension)
@@ -305,7 +306,7 @@ local function get_macro_metadata(file)
meta.author = macro.script_author
meta.namespace = macro.script_namespace
meta.changelog = macro.script_changelog
- meta.depctrl = macro.__feedmaker_version
+ meta.depctrl = __feedmaker_version
if not meta.namespace then
err(file .. ": no script_namespace, skipping")