From: Tobias Ulmer Date: Tue, 11 Jun 2013 16:21:21 +0000 (+0200) Subject: Hash the result name. X-Git-Tag: e2factory-2.3.14rc1~1 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=b0c4aed986eacfd5b505f9659d1a8a40ed154094;p=e2factory.git Hash the result name. 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 --- diff --git a/local/e2tool.lua b/local/e2tool.lua index f104a6c..1f00f94 100644 --- a/local/e2tool.lua +++ b/local/e2tool.lua @@ -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()