From 66501a24b419d6bc3c2506a42b639bde5e42d4e5 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 6 Jul 2011 06:29:12 +0000 Subject: [PATCH] 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. --- aports.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aports.lua b/aports.lua index 4c57a89..d29f589 100755 --- a/aports.lua +++ b/aports.lua @@ -164,6 +164,9 @@ end function Aports:foreach_pkg(pkg, f) local k,v + if self.apks[pkg] == nil then + io.stderr:write("WARNING: "..pkg.." has no data\n") + end for k,v in pairs(self.apks[pkg]) do f(k,v) end