local e = err.new("creating link to last results")
-- calculate the path to the result
local server, location = res.build_mode.storage(info.project_location,
- info.release_id)
+ info.project.release_id)
local location1 = string.format("%s/%s/%s", location, r,
e2tool.buildid(info, r))
local cache_flags = {
return true, nil
end
local server, location =
- res.build_mode.storage(info.project_location, info.release_id)
+ res.build_mode.storage(info.project_location, info.project.release_id)
local dep_set = res.build_mode.dep_set(buildid)
-- cache the result
local tmpdir = string.format("%s/e2factory-%s.%s.%s-build/%s",
e2lib.globals.tmpdir, buildconfig.MAJOR, buildconfig.MINOR,
buildconfig.PATCHLEVEL, e2lib.globals.username)
- local project = info.name
+ local project = info.project.name
local builddir = "tmp/e2"
tab.mode = nil -- XXX
tab.location = nil -- XXX info.project_location
end
local dep_set = d.build_mode.dep_set(buildid)
- local server, location = d.build_mode.storage(info.project_location,
- info.release_id)
+ local server, location =
+ d.build_mode.storage(info.project_location, info.project.release_id)
e2lib.logf(3, "searching for dependency %s in %s:%s", dep, server, location)
local location1 = string.format("%s/%s/%s/result.tar", location, dep,
dep_set)
table.insert(files, string.format("files/%s", f))
end
table.insert(files, "checksums")
- local server, location = res.build_mode.deploy_storage(info.project_location,
- info.release_id)
+ local server, location = res.build_mode.deploy_storage(
+ info.project_location, info.project.release_id)
-- do not re-deploy if this release was already done earlier
local location1 = string.format("%s/%s/checksums", location, r)
return false, e:cat(re)
end
local server, location = res.build_mode.storage(info.project_location,
- info.release_id)
+ info.project.release_id)
local buildid, re = e2tool.buildid(info, r)
if not buildid then
if not f then
return false, e:cat(re)
end
- f:write(string.format("name='%s'\n", info.name))
- f:write(string.format("release_id='%s'\n", info.release_id))
+ f:write(string.format("name='%s'\n", info.project.name))
+ f:write(string.format("release_id='%s'\n", info.project.release_id))
f:write(string.format("default_results='%s'\n",
res.collect_project_default_result))
f:write(string.format("chroot_arch='%s'\n",
if e2option.opts["check"] then
e2tool.lcd(info, ".")
- rc, re = generic_git.verify_head_match_tag(nil, info.release_id)
+ rc, re = generic_git.verify_head_match_tag(nil, info.project.release_id)
if rc == nil then
return false, e:cat(re)
end
end
if e2option.opts["check-remote"] then
- rc, re = generic_git.verify_remote_tag(nil, info.release_id)
+ rc, re = generic_git.verify_remote_tag(nil, info.project.release_id)
if not rc then
e:append("verifying remote tag failed")
return false, e:cat(re)
-- by INFO, topologically sorted according to the projects dependency
-- information.
function e2tool.dsort(info)
- return e2tool.dlist_recursive(info, info.default_results)
+ return e2tool.dlist_recursive(info, info.project.default_results)
end
--- read hash file.
hc:hash_line(fileid) -- the file content
end
end
- hc:hash_line(info.release_id)
- hc:hash_line(info.name)
+ hc:hash_line(info.project.release_id)
+ hc:hash_line(info.project.name)
hc:hash_line(info.project.chroot_arch)
hc:hash_line(buildconfig.VERSION)
info.projid = hc:hash_finish()