if not rc then
return false, e:cat(re)
end
- local out = luafile.open(res.build_config.buildlog, "w")
+ local out, msg = io.open(res.build_config.buildlog, "w")
+ if not out then
+ return false, e:cat(msg)
+ end
local function logto(output)
e2lib.log(3, output)
out:write(output)
require("hash")
require("lock")
require("e2util")
-require("luafile_ll")
require("e2option")
-require("luafile")
require("generic_git")
require("policy")
end
local logfile = info.root .. "/log/debug.log"
local rc, re = e2lib.rotate_log(logfile)
- local debuglogfile, re = luafile.open(logfile, "w")
+ local debuglogfile, msg = io.open(logfile, "w")
if not debuglogfile then
local e = new_error("error opening debug logfile")
- return false, e:cat(re)
+ return false, e:append(msg)
end
e2lib.globals.debuglogfile = debuglogfile
return true, nil