]> git.e2factory.org Git - e2factory.git/commitdiff
maintain list of env files
authorGordon Hecker <gh@emlix.com>
Wed, 17 Jun 2009 15:44:35 +0000 (17:44 +0200)
committerGordon Hecker <gh@emlix.com>
Thu, 18 Jun 2009 18:00:07 +0000 (20:00 +0200)
Signed-off-by: Gordon Hecker <gh@emlix.com>
local/e2tool.lua

index cf97f0810ade5a86d30b139f86967c796d1dd5aa..8bf24ff24d5d54c03aac0134ce8f103113332896 100644 (file)
@@ -66,6 +66,8 @@ e2tool = e2lib.module("e2tool")
 -- @field build_numbers table: build numbers keyed by result names
 -- @field project_location string: project location relative to the servers
 -- @field release_id string: release identifiert XXX where do we initialize it?
+-- @field env table: env table
+-- @field env_files table: list of env files
 
 --- table of sources records, keyed by source names
 -- @name sources
@@ -375,6 +377,7 @@ The newest configuration syntax supported by the tools is %s.
                " may not be extended once it is loaded.")
   end
   info.env = {}
+  info.env_files = { "proj/env", }
   if e2util.exists(p2) then
     e2lib.log(3, "loading " .. p2)
     local function check(k, v)
@@ -390,6 +393,7 @@ The newest configuration syntax supported by the tools is %s.
                    local path2 = info.root .. "/" .. tab
                    e2lib.log(3, "loading " .. path2)
                    e2lib.dofile_protected(path2, { env=lua_should_have_localrec, e2env = info.env })
+                   table.insert(info.env_files, tab)
                  elseif type(tab) == "table" then
                    for k, v in pairs(tab) do -- for each result...
                      if type(k) ~= "string" then