]> git.e2factory.org Git - e2factory.git/commitdiff
Hash the result name.
authorTobias Ulmer <tu@emlix.com>
Tue, 11 Jun 2013 16:21:21 +0000 (18:21 +0200)
committerTobias Ulmer <tu@emlix.com>
Tue, 11 Jun 2013 16:21:21 +0000 (18:21 +0200)
The result name is passed into the build chroot as environment variable.
To prevent the same build ids for results that are equal in all but the
name, the name must be considered when calculating the build id.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/e2tool.lua

index f104a6c2f15c911f0d5c8208f25eab9a19390d69..1f00f947253a7bc1e7565d59b940aa0c0d53506d 100644 (file)
@@ -2161,6 +2161,9 @@ function e2tool.pbuildid(info, resultname)
         return r.build_mode.buildid(r.pbuildid)
     end
     local hc = hash.hash_start()
+
+    hash.hash_line(hc, r.name)
+
     for _,s in ipairs(r.sources) do
         local src = info.sources[s]
         local source_set = r.build_mode.source_set()