aboutsummaryrefslogtreecommitdiffstats
path: root/make-feed.lua
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2022-11-20 04:20:01 +0000
committergarret <garret@airmail.cc>2022-11-20 04:23:10 +0000
commite63ed7cb5338311bd4b59fe74240ef14f411c2a2 (patch)
treef527ceee2848cefce4a90fd6a9fb3f7d75ad6bfa /make-feed.lua
parent8708e426711f6b323c79200d050a975439aed690 (diff)
downloaddepctrl-feedmaker-e63ed7cb5338311bd4b59fe74240ef14f411c2a2.tar.gz
depctrl-feedmaker-e63ed7cb5338311bd4b59fe74240ef14f411c2a2.tar.bz2
depctrl-feedmaker-e63ed7cb5338311bd4b59fe74240ef14f411c2a2.zip
feedmaker: metadata getter: add filename
not sure whether i was mistaken or not either way nice to have
Diffstat (limited to 'make-feed.lua')
-rwxr-xr-xmake-feed.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/make-feed.lua b/make-feed.lua
index a7567e6..8cbc58b 100755
--- a/make-feed.lua
+++ b/make-feed.lua
@@ -70,8 +70,11 @@ local function get_files(path)
end
local function get_metadata(file)
- local meta = {name = nil, description = nil, version = nil, author = nil, namespace = nil, depctrl = nil, sha1 = nil, release = nil}
+ local meta = {filename = nil, name = nil, description = nil, version = nil, author = nil, namespace = nil, depctrl = nil, sha1 = nil, release = nil}
-- having all those nils in the table doesn't really do anything in terms of functionality, but it lets me see what i need to put in it
+
+ meta.filename = file
+
loadfile(file)()
-- script_name etc are now in our global scope
if config.ignoreCondition then return nil end