--- Return the list of chroot groups for this result.
-- @return string list of required chroot groups.
-function result.basic_result:my_chroot_list()
- error(err.new("called my_chroot_list() of result base class, type %s name %s",
+function result.basic_result:chroot_list()
+ error(err.new("called chroot_list() of result base class, type %s name %s",
self._type, self._name))
end
e:append("chroot group does not exist: %s", g)
end
- self:my_chroot_list():insert(g)
+ self:chroot_list():insert(g)
end
end
return self._sources_list
end
-function result.result_class:my_chroot_list()
+function result.result_class:chroot_list()
return self._chroot_list
end
end
-- chroot
- for groupname in self:my_chroot_list():iter_sorted() do
+ for groupname in self:chroot_list():iter_sorted() do
id, re = chroot.groups_byname[groupname]:chrootgroupid(info)
if not id then
return false, e:cat(re)
table.insert(t, { "sources", self:my_sources_list():unpack()})
table.insert(t, { "depends", self:depends_list():unpack()})
if flagt.chroot then
- table.insert(t, { "chroot", self:my_chroot_list():unpack()})
+ table.insert(t, { "chroot", self:chroot_list():unpack()})
end
if flagt.env then
local tenv = { "env" }
err.new("can not convert result %q, type %q is unsupported",
dep:get_name(), dep:get_type())
end
- cp_chroot:insert_sl(dep:my_chroot_list())
+ cp_chroot:insert_sl(dep:chroot_list())
cp_sources:insert_sl(dep:my_sources_list())
end
-- generate config
out = {
string.format("### generated by e2factory for result %s ###\n", depname),
- string.format("CHROOT='%s'\n", dep:my_chroot_list():concat_sorted(" ")),
+ string.format("CHROOT='%s'\n", dep:chroot_list():concat_sorted(" ")),
string.format("DEPEND='%s'\n", dep:depends_list():concat_sorted(" ")),
string.format("SOURCE='%s'\n", dep:my_sources_list():concat_sorted(" ")),
}
return bp
end
-function collect_project_class:my_chroot_list()
- return self._stdresult:my_chroot_list()
+function collect_project_class:chroot_list()
+ return self._stdresult:chroot_list()
end
function collect_project_class:merged_env()