From: Gordon Hecker Date: Fri, 25 Jun 2010 09:23:45 +0000 (+0200) Subject: e2-build: bugfix: BuildIds were calculated as needed by the build process. X-Git-Tag: e2factory-2.3.7pre1~3 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=5f33cbd4ec8b41a5abb8567d0805338f4b43d076;p=e2factory.git e2-build: bugfix: BuildIds were calculated as needed by the build process. Fix this to calculate all required BuildIds in advance. That way many errors will be detected earlier in the process. Signed-off-by: Gordon Hecker --- diff --git a/Changelog b/Changelog index 155c93b..99bb973 100644 --- a/Changelog +++ b/Changelog @@ -1,4 +1,6 @@ NEXT: + * BuildIds are now calculated in advance to detect errors immediately + before starting the first build process e2factory-2.3.6 * the release build process changed: Results are now stored on the diff --git a/local/build.lua b/local/build.lua index 1eb1e89..da67d00 100755 --- a/local/build.lua +++ b/local/build.lua @@ -160,8 +160,13 @@ if opts["buildnumber"] then end end --- calculate build ids ids -e2tool.calc_buildids(info) +-- calculate buildids for selected results +for _,r in ipairs(sel_res) do + local bid, re = e2tool.buildid(info, r) + if not bid then + e2lib.abort(re) + end +end if opts["buildid"] then for _,r in ipairs(sel_res) do