From: Gordon Hecker Date: Tue, 23 Mar 2010 11:18:05 +0000 (+0100) Subject: move config file config to globals table X-Git-Tag: e2factory-2.3.4rc2~4 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=eeafe189630488a11c7d9cdc3b384e7f6163a547;p=e2factory.git move config file config to globals table Signed-off-by: Gordon Hecker --- diff --git a/generic/e2lib.lua b/generic/e2lib.lua index fa8ccae..15f28c8 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -94,6 +94,7 @@ globals = { buildnumber_server_url = nil, template_path = string.format("%s/templates", buildconfig.SYSCONFDIR), extension_config = ".e2/extensions", + e2config = ".e2/e2config", global_interface_version_file = ".e2/global-version", lock = nil, logrotate = 5, -- configurable via config.log.logrotate diff --git a/local/e2tool.lua b/local/e2tool.lua index 81c0766..4539647 100644 --- a/local/e2tool.lua +++ b/local/e2tool.lua @@ -458,7 +458,8 @@ The newest configuration syntax supported by the tools is %s. end -- try to get project specific config file paht - local config_file_config = string.format("%s/.e2/e2config", info.root) + local config_file_config = string.format("%s/%s", info.root, + e2lib.globals.e2config) local config_file = e2lib.read_line(config_file_config) -- don't care if this succeeds, the parameter is optional.