Commit 66501a24 authored by Natanael Copa's avatar Natanael Copa

aports.lua: warn if data for a package is missing

This might happen if package name appears as a dependency but there
are no apkbuild for it.
parent 77eb895c
...@@ -164,6 +164,9 @@ end ...@@ -164,6 +164,9 @@ end
function Aports:foreach_pkg(pkg, f) function Aports:foreach_pkg(pkg, f)
local k,v local k,v
if self.apks[pkg] == nil then
io.stderr:write("WARNING: "..pkg.." has no data\n")
for k,v in pairs(self.apks[pkg]) do for k,v in pairs(self.apks[pkg]) do
f(k,v) f(k,v)
end end
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment