diff options
author | garret <garret@airmail.cc> | 2022-11-20 04:20:01 +0000 |
---|---|---|
committer | garret <garret@airmail.cc> | 2022-11-20 04:23:10 +0000 |
commit | e63ed7cb5338311bd4b59fe74240ef14f411c2a2 (patch) | |
tree | f527ceee2848cefce4a90fd6a9fb3f7d75ad6bfa /make-feed.lua | |
parent | 8708e426711f6b323c79200d050a975439aed690 (diff) | |
download | depctrl-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-x | make-feed.lua | 5 |
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 |