]> git.e2factory.org Git - e2factory.git/commitdiff
Buildid change: stop indiscriminately hashing the "base" group
authorTobias Ulmer <tu@emlix.com>
Wed, 30 Jan 2013 19:55:57 +0000 (20:55 +0100)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:14 +0000 (19:07 +0100)
Fixes a stacktrace when using a chroot config default group different to
"base". This fix causes a buildid change, since the invalid base group
was hashed into the result buildid.

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

index 2667b21b93b94bf2269b1ba0705f7d70db493791..7558589fec9fc006a4c45389cbebf317b3c7aedd 100644 (file)
@@ -407,7 +407,6 @@ local function check_collect_project(info, resultname)
     -- store a sorted list of required sources, chroot groups and licences
     local tmp_grp = {}
     local tmp_src = {}
-    tmp_grp["base"] = true
     for _,r in ipairs(res.collect_project_results) do
         local res = info.results[r]
         for _,s in ipairs(res.sources) do
@@ -2122,11 +2121,7 @@ function e2tool.pbuildid(info, resultname)
         end
         hash.hash_line(hc, lid)                -- licence id
     end
-    local groupid, re = chrootgroupid(info, "base")
-    if not groupid then
-        return nil, e:cat(re)
-    end
-    hc:hash_line(groupid)
+
     if r.chroot then
         for _,g in ipairs(r.chroot) do
             local groupid = chrootgroupid(info, g)