-- handle E2_SSH environment setting
ssh = e2lib.globals.osenv["E2_SSH"]
if ssh then
- e2lib.logf(3, "using E2_SSH environment variable: %s", ssh)
+ e2lib.logf(4, "using E2_SSH environment variable: %s", ssh)
rc, re = tools.set_tool("ssh", ssh)
if not rc then
return false, e:cat(re)
e2lib.logf(4, "reading global config file: %s", path)
local rc = e2lib.exists(path)
if rc then
- e2lib.logf(3, "using global config file: %s", path)
+ e2lib.logf(4, "using global config file: %s", path)
rc, re = e2lib.dofile2(path,
{ config = function(x) data = x end })
if not rc then
return {}
end
- e2lib.logf(3, "reading extension file: %s", extension_config)
+ e2lib.logf(4, "reading extension file: %s", extension_config)
local data = nil
rc, re = e2lib.dofile2(extension_config,
local rc, re, pid
local sync_pipes = {}
- e2lib.logf(3, "calling %q in %q", table.concat(argv, " "),
+ e2lib.logf(4, "calling %q in %q", table.concat(argv, " "),
workdir or "$PWD")
rc, re = fd_parent_setup(fdctv)
return pid
end
- e2lib.logf(3, "waiting for %q", table.concat(argv, " "))
+ e2lib.logf(4, "waiting for %q", table.concat(argv, " "))
rc, re = e2lib.wait(pid)
if not rc then
return false, re
end
- e2lib.logf(3, "command %q exit with return code %d",
+ e2lib.logf(4, "command %q exit with return code %d",
table.concat(argv, " "), rc)
return rc
l, filename)
end
- e2lib.logf(3, "using e2 branch %s tag %s",
+ e2lib.logf(4, "using e2 branch %s tag %s",
version_table.branch, version_table.tag)
return strict.lock(version_table)
for k,v in ipairs(vals) do
table.insert(t, string.format("[%d]=%q", k, v))
end
- e2lib.logf(3, "e2option.parse(): %s", table.concat(t, ", "))
+ e2lib.logf(4, "e2option.parse(): %s", table.concat(t, ", "))
if opts["Wdefault"] or opts["Wall"] then
e2lib.globals.warn_category.WDEFAULT = true
if type(flags) == "string" then
toollist[name].flags = flags
end
- e2lib.logf(3, "setting tool: %s=%s flags=%s", name, toollist[name].name,
+ e2lib.logf(4, "setting tool: %s=%s flags=%s", name, toollist[name].name,
toollist[name].flags)
return true
end
}
local t = toollist[name]
- e2lib.logf(3, "adding tool: %s=%s flags=%s optional=%s", name, t.name,
+ e2lib.logf(4, "adding tool: %s=%s flags=%s optional=%s", name, t.name,
t.flags, tostring(t.optional))
return true
function e2build.build_process_class:_fix_permissions(res, return_flags)
local rc, re, bc
local e = err.new("fixing permissions failed")
- e2lib.log(3, "fix permissions")
e2tool.set_umask()
bc = res:build_config()
local f = settings:force_rebuild() and "[force rebuild]" or ""
local p = settings:prep_playground() and "[playground]" or ""
- e2lib.logf(3, "Selected result: %-20s %s %s %s", resultname, s, f, p)
+ e2lib.logf(4, "Selected result: %-20s %s %s %s", resultname, s, f, p)
end
return true
end
path = e2lib.join(e2tool.root(), "proj/licences")
- e2lib.logf(3, "loading licence config %q", path)
+ e2lib.logf(4, "loading licence config %q", path)
e = err.new("loading licence config %q failed", path)
ltable = nil
end
local function _load_env_config(file)
- e2lib.logf(3, "loading environment: %s", file)
+ e2lib.logf(4, "loading environment: %s", file)
local e = err.new("loading environment: %s", file)
local rc, re
local merge_error = false
if type(value) == "string" then
- e2lib.logf(3, "global env: %-15s = %-15s", key, value)
+ e2lib.logf(4, "global env: %-15s = %-15s", key, value)
projenv.get_global_env():set(key, value)
else
return
end
- e2lib.logf(3, "result env: %-15s = %-15s [%s]", key1, value1, key)
+ e2lib.logf(4, "result env: %-15s = %-15s [%s]", key1, value1, key)
projenv.get_result_env(key):set(key1, value1)
end
rawres.type, rawres.name)
end
- e2lib.logf(3, "instantiating %s of type %s", rawres.name, rawres.type)
+ e2lib.logf(4, "instantiating %s of type %s", rawres.name, rawres.type)
theclass = result_types[rawres.type]
assertIsTable(theclass)