Signed-off-by: Gordon Hecker <gh@emlix.com>
improve performance
* logfiles are rotated instead of deleting them
* a bug in configuration validation for files sources was fixed
+ * a bug in validating the licences attribute in source configurations was
+ fixed
* unused code was removed
* the faq section in the documentation was extended
* outdated documentation was removed
" licences attribute is not in table format. Converting.")
src.licences = { src.licences }
end
+ for i, s in pairs(src.licences) do
+ if type(i) ~= "number" or type(s) ~= "string" then
+ e:append("licences attribute is not a list of strings")
+ return false, e
+ end
+ end
for _,l in ipairs(src.licences) do
if not info.licences[l] then
e:append("unknown licence: %s", l)