error(re)
end
- if opts.release then
- local version_table, re = e2lib.parse_e2versionfile(
- e2lib.join(info.root, e2lib.globals.e2version_file))
- if not version_table then
- error(re)
- end
-
- if version_table.tag == "^" then
- error(
- err.new("e2 is on a pseudo tag while building in release mode."))
- end
- end
-
-- calculate buildids for selected results
for _,r in ipairs(sel_res) do
local bid, re = e2tool.buildid(info, r)
-- if x86_64 mode is requested.
info.chroot_call_prefix["x86_64"] = ""
- if e2option.opts["check"] then
- local f = e2lib.join(info.root, e2lib.globals.e2version_file)
- local v, re = e2lib.parse_e2versionfile(f)
- if not v then
- return false, re
- end
+ local f = e2lib.join(info.root, e2lib.globals.e2version_file)
+ local v, re = e2lib.parse_e2versionfile(f)
+ if not v then
+ return false, re
+ end
- if v.tag == "^" then
- return false, err.new("local tool version is not configured to " ..
- "a fixed tag\nfix you configuration in %s before running " ..
- "e2factory in release mode", f)
- elseif v.tag ~= buildconfig.VERSIONSTRING then
- return false, err.new("local tool version does not match the " ..
- "version configured\n in `%s`\n local tool version is %s\n" ..
- "required version is %s", f, buildconfig.VERSIONSTRING, v.tag)
- end
+ if v.tag ~= buildconfig.VERSIONSTRING then
+ return false, err.new("local tool version does not match the " ..
+ "version configured\n in `%s`\nlocal tool version is %s\n" ..
+ "required version is %s", f, buildconfig.VERSIONSTRING, v.tag)
end
-- read environment configuration