if not rc then
return false, e:cat(re)
end
- return true, nil
+ return true
end
--- Return true if the result given in c is already available, false otherwise
0, string.format("building %-20s", resultname),
columns, string.format("[%s] [playground]", sbid))
return_flags.stop = false
- return true, nil
+ return true
end
if res:get_build_mode().source_set() == "working-copy" or
result.build_settings.force_rebuild:lookup(resultname) then
0, string.format("building %-20s", resultname),
columns, string.format("[%s]", sbid))
return_flags.stop = false
- return true, nil
+ return true
end
local server, location =
res:get_build_mode().storage(info.project_location, project.release_id())
0, string.format("building %-20s", resultname),
columns, string.format("[%s]", sbid))
return_flags.stop = false
- return true, nil
+ return true
end
e2lib.log(3, "result is available locally")
--[[
0, string.format("skipping %-20s", resultname),
columns, string.format("[%s]", sbid))
return_flags.stop = true
- return true, nil
+ return true
end
--- Build config per result. This table is locked.
if not rc then
return false, e:cat(re)
end
- return true, nil
+ return true
end
--- TODO
if not rc then
return false, e:cat(re)
end
- return true, nil
+ return true
end
--- TODO
for f in grp:file_iter() do
local flags = { cache = true }
- local rc, re = cache.cache_file(info.cache, f.server,
+ rc, re = cache.cache_file(info.cache, f.server,
f.location, flags)
if not rc then
return false, e:cat(re)
end
end
end
- return true, nil
+ return true
end
--- Enter playground.
if not rc then
return false, e:cat(re)
end
- return true, nil
+ return true
end
--- TODO
if result.build_settings.playground:lookup(resultname) then
return_flags.message = string.format("playground done for: %-20s", resultname)
return_flags.stop = true
- return true, nil
+ return true
end
-- do nothing...
- return true, nil
+ return true
end
--- TODO
return false, e:cat(re)
end
end
- return true, nil
+ return true
end
--- TODO
if chroot_remove(info, resultname, return_flags) then
return chroot_cleanup(info, resultname, return_flags)
end
- return true, nil
+ return true
end
--- check if a chroot exists for this result
end
e2lib.rmtempdir(tmpdir)
- return true, nil
+ return true
end
--- write build driver files
return false, e:cat(re)
end
end
- return true, nil
+ return true
end
local function install_build_script(info, resultname, return_flags)
if not rc then
return false, e:cat(re)
end
- return true, nil
+ return true
end
local function install_env(info, resultname, return_flags)
string.format("source %s/init/%s", bc.Tc, x))
end
end
- return true, nil
+ return true
end
local function install_build_driver(info, resultname, return_flags)
if not rc then
return false, e:cat(re)
end
- return true, nil
+ return true
end
local function install_build_time_dependencies(info, resultname, return_flags)
return false, e:cat(re)
end
end
- return true, nil
+ return true
end
local function install_sources(info, resultname, return_flags)
return false, e:cat(re)
end
end
- return true, nil
+ return true
end
local steps = {
return false, re
end
end
- return true, nil
+ return true
end
--- deploy a result to the archive
end
e2lib.rmtempdir(tmpdir)
- return true, nil
+ return true
end
--- build a result
end
if flags.stop then
-- stop the build process for this result
- return true, nil
+ return true
end
if flags.terminate then
-- stop the build process for this result and terminate
- return true, nil
+ return true
end
end
- return true, nil
+ return true
end
--- Build a set of results.
local deltat = os.difftime(t2, t1)
e2lib.logf(3, "timing: result [%s] %d", resultname, deltat)
if flags.stop then
- return true, nil
+ return true
end
end
- return true, nil
+ return true
end
--- Array of tables containing functions to drive the build process.
func = func,
}
table.insert(build_process, ipos, tab)
- return true, nil
+ return true
end
--- TODO