]> git.e2factory.org Git - e2factory.git/commitdiff
e2-build: bugfix: BuildIds were calculated as needed by the build process.
authorGordon Hecker <gh@emlix.com>
Fri, 25 Jun 2010 09:23:45 +0000 (11:23 +0200)
committerGordon Hecker <gh@emlix.com>
Fri, 25 Jun 2010 14:44:30 +0000 (16:44 +0200)
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 <gh@emlix.com>
Changelog
local/build.lua

index 155c93b2bca0d0478fb259a6294f6f8f85b5daac..99bb9737d144de4232ea084eac1da54465da5bd9 100644 (file)
--- 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
index 1eb1e8985745178060b863fdd72dc46561588a2f..da67d006a2f1c9627bf9a502595bf3b03cba4f38 100755 (executable)
@@ -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