]> git.e2factory.org Git - e2factory.git/commitdiff
project: include extension name and tag in ProjectID
authorTobias Ulmer <tu@emlix.com>
Wed, 9 Nov 2016 14:51:37 +0000 (15:51 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/project.lua

index a09efe451b3d9b993e8c7d23b901aef088cd6310..1fd3b9ffb33e3c6827dc2dfb42839cfa46cf1d03 100644 (file)
@@ -308,6 +308,22 @@ function project.projid(info)
     hash.hash_append(hc, project.chroot_arch())
     hash.hash_append(hc, buildconfig.VERSION)
 
+    -- .e2/extensions
+    local extensions
+    extensions, re = e2lib.read_extension_config(info.root)
+    if not extensions then
+        return false, re
+    end
+
+    for _,entry in ipairs(extensions) do
+        if type(entry.ref) == "string" then
+            hash.hash_append(hc, entry.ref)
+        end
+        if type(entry.name) == "string" then
+            hash.hash_append(hc, entry.name)
+        end
+    end
+
     _projid_cache = hash.hash_finish(hc)
 
     return _projid_cache