]> git.e2factory.org Git - e2factory.git/commitdiff
collect_project: include default_result and its deps in BuildID
authorTobias Ulmer <tu@emlix.com>
Fri, 27 Jan 2017 14:16:32 +0000 (15:16 +0100)
committerTobias Ulmer <tu@emlix.com>
Fri, 27 Jan 2017 15:00:41 +0000 (16:00 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Changelog
plugins/collect_project.lua

index 40a7d9ee97fe62c13ba0bc621f2f32d023657b4a..20caa180c301bf7503e3b6b6516ffe2db0d97c95 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,5 @@
 NEXT:
+ * Fix collect_project, include default result and its deps into the BuildID
 
 e2factory-2.3.16
  * Fix e2 fetch-sources --update for git repos
index 441bdee14f6f318b2bbf5b07bb1b290136e6832d..2d5f70d260d8a135c19c7c8de12603a56f61d2aa 100644 (file)
@@ -452,7 +452,7 @@ function collect_project_class:depends_list()
 end
 
 function collect_project_class:buildid()
-    local rc, re, bid, hc
+    local rc, re, bid, hc, res
 
     bid, re = self._stdresult:buildid()
     if not bid then
@@ -461,7 +461,14 @@ function collect_project_class:buildid()
 
     hc = hash.hash_start()
     hash.hash_append(hc, bid)
-    hash.hash_append(hc, self:cp_default_result())
+
+    res = result.results[self:cp_default_result()]
+    bid, re = res:buildid()
+    if not bid then
+        return false, re
+    end
+    hash.hash_append(hc, bid)
+
     bid = hash.hash_finish(hc)
 
     assertIsStringN(bid)