From 86c81d1114101d35a02d1739d8e8f68c6dadacc5 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 1 Jun 2017 13:38:27 +0200 Subject: secfixes.lua: verify that secfixes is a table --- secfixes.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'secfixes.lua') diff --git a/secfixes.lua b/secfixes.lua index 8dbe71d..8253f80 100644 --- a/secfixes.lua +++ b/secfixes.lua @@ -49,6 +49,7 @@ function verify_yaml(file) local data = yaml.load(f:read("*all")) for _,p in pairs(data.packages) do assert(type(p.pkg.name) == "string") + assert(type(p.pkg.secfixes) == "table", file..": "..p.pkg.name..": secfixes is not a table") for k,v in pairs(p.pkg.secfixes) do assert(type(k) == "string", file..": "..p.pkg.name..": not a string: "..tostring(k)) assert(string.match(k, "^[0-9]+")) -- cgit v1.2.3