From b0c4aed986eacfd5b505f9659d1a8a40ed154094 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Tue, 11 Jun 2013 18:21:21 +0200 Subject: [PATCH] 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 --- local/e2tool.lua | 3 +++ 1 file changed, 3 insertions(+) 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() -- 2.39.5