table.insert(l, s)
end
end
- return true, nil
+ return true
end
--- check a table according to a description table
if e:getcount() > 1 then
return false, e
end
- return true, nil
+ return true
end
--- Open debug logfile.
rc, re = e2lib.dofile2(path, g, true)
if not rc then
- return nil, e:cat(re)
+ return false, e:cat(re)
end
- return list, nil
+ return list
end
--- check results.
if e:getcount() > 1 then
return false, e
end
- return true, nil
+ return true
end
--- set umask to value used for build processes
rc, re = e2tool.register_check_result(info, check_result)
if not rc then
- return nil, e:cat(re)
+ return false, e:cat(re)
end
rc, re = e2tool.register_dlist(info, get_depends)
if not rc then
- return nil, e:cat(re)
+ return false, e:cat(re)
end
-- load local plugins
end
end
end
- return true, nil
+ return true
end
table.insert(info.env_files, file)
return false, merge_error
end
e2lib.logf(4, "loading environment done: %s", file)
- return true, nil
+ return true
end
--- read chroot configuration
return false, e:cat(re)
end
end
- return info, nil
+ return info
end
--- check chroot config
if not rc then
return false, re
end
- return true, nil
+ return true
end
--- check sources.
if e:getcount() > 1 then
return false, e
end
- return true, nil
+ return true
end
--- check licence.
if e:getcount() > 1 then
return false, e
end
- return true, nil
+ return true
end
--- Checks project information for consistancy.
return false, e:append("%s:%s", server, location)
end
e2lib.logf(4, "checksum matches: %s:%s", server, location)
- return true, nil
+ return true
end
--- Cache for projid() result.
not e2option.opts["check-remote"] then
e2lib.logf(4, "checksum for remote file %s:%s skip verifying",
file.server, file.location)
- return true, nil
+ return true
end
local surl, re = cache.remote_url(info.cache, file.server, file.location)
if not surl then
end
lic.licenceid, re = hash.hash_finish(hc)
if not lic.licenceid then
- return nil, e:cat(re)
+ return false, e:cat(re)
end
return lic.licenceid
end
local p = res.playground and "[playground]" or ""
e2lib.logf(3, "Selected result: %-20s %s %s %s", r, s, f, p)
end
- return true, nil
+ return true
end
--- register collect project info.
return false, err.new("register_collect_project_info: invalid argument")
end
table.insert(e2tool_ftab.collect_project_info, func)
- return true, nil
+ return true
end
--- register check result.
return false, err.new("register_check_result: invalid argument")
end
table.insert(e2tool_ftab.check_result, func)
- return true, nil
+ return true
end
--- register resultid.
return false, err.new("register_resultid: invalid argument")
end
table.insert(e2tool_ftab.resultid, func)
- return true, nil
+ return true
end
--- register project buildid.
return false, err.new("register_pbuildid: invalid argument")
end
table.insert(e2tool_ftab.pbuildid, func)
- return true, nil
+ return true
end
--- register dlist.
return false, err.new("register_dlist: invalid argument")
end
table.insert(e2tool_ftab.dlist, func)
- return true, nil
+ return true
end
--- Function table, driving the build process. Contains further tables to