From 5f33cbd4ec8b41a5abb8567d0805338f4b43d076 Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Fri, 25 Jun 2010 11:23:45 +0200 Subject: [PATCH] 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 --- Changelog | 2 ++ local/build.lua | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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 -- 2.39.5