From: Gordon Hecker Date: Tue, 9 Jun 2009 12:25:25 +0000 (+0200) Subject: bugfix: error checking in buildid calculation X-Git-Tag: e2factory-2.3.1rc1~1 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=f03205b4d01470955dd3d7642cfd522086f1b102;p=e2factory.git bugfix: error checking in buildid calculation Signed-off-by: Gordon Hecker --- diff --git a/local/e2tool.lua b/local/e2tool.lua index 560fdab..967aa88 100644 --- a/local/e2tool.lua +++ b/local/e2tool.lua @@ -1373,13 +1373,20 @@ function e2tool.pbuildid(info, resultname) hc:hash_line(projid) -- project id hash.hash_line(hc, r.resultid) -- result id for _,d in ipairs(r.depends) do - local id = e2tool.pbuildid(info, d) + local id, re = e2tool.pbuildid(info, d) + if not id then + e2lib.abort(re) + end hash.hash_line(hc, id) -- buildid of dependency end for _,c in ipairs(r.collect_project_results) do local res = info.results[c] -- pbuildids of collected results - hash.hash_line(hc, e2tool.pbuildid(info, c)) + local pbid, re = e2tool.pbuildid(info, c) + if not pbid then + e2lib.abort(re) + end + hash.hash_line(hc, pbid) end e2lib.log(4, string.format("hash data for resultid %s\n%s", resultname, hc.data))