configuration. That prevented the user from fixing a broken
configuration using that tool, making the tool pretty much useless.
Signed-off-by: Gordon Hecker <gh@emlix.com>
local opts = e2option.parse(arg)
-local info, re = e2tool.collect_project_info()
+-- initialize some basics in the info structure without actually loading
+-- the project configuration.
+local info, re = e2tool.collect_project_info(nil, true)
if not info then
e2lib.abort(re)
end
-local rc, re = e2tool.check_project_info(info)
-if not rc then
- e2lib.abort(re)
-end
rc, re = e2lib.chdir(info.root)
if not rc then
return list, nil
end
-function collect_project_info(path)
+function collect_project_info(path, skip_load_config)
local rc, re
local e = new_error("reading project configuration")
e2lib.init2() -- configuration must be available
+ if skip_load_config == true then
+ return info
+ end
+
local rc, re = opendebuglogfile(info)
if not rc then
return false, e:cat(re)