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>
-- 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
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)