From e63ed7cb5338311bd4b59fe74240ef14f411c2a2 Mon Sep 17 00:00:00 2001 From: garret Date: Sun, 20 Nov 2022 04:20:01 +0000 Subject: feedmaker: metadata getter: add filename not sure whether i was mistaken or not either way nice to have --- make-feed.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'make-feed.lua') 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 -- cgit v1.2.3-70-g09d2