]> git.e2factory.org Git - e2factory.git/commitdiff
move config file config to globals table
authorGordon Hecker <gh@emlix.com>
Tue, 23 Mar 2010 11:18:05 +0000 (12:18 +0100)
committerGordon Hecker <gh@emlix.com>
Tue, 23 Mar 2010 11:19:05 +0000 (12:19 +0100)
Signed-off-by: Gordon Hecker <gh@emlix.com>
generic/e2lib.lua
local/e2tool.lua

index fa8ccae6dd86e8e56fdd2cb9d34b40144a88b4c5..15f28c8646523585ea5d27e89cf3b0262aed2d30 100644 (file)
@@ -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
index 81c076654d5d06fc801a3c6cca6783b9a82db937..4539647fc3b9c73899938294cc6decfd41445807 100644 (file)
@@ -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.