]> git.e2factory.org Git - e2factory.git/commitdiff
make current environment available to nested environment config files
authorGordon Hecker <gh@emlix.com>
Mon, 27 Apr 2009 12:10:53 +0000 (14:10 +0200)
committerGordon Hecker <gh@emlix.com>
Mon, 27 Apr 2009 12:45:00 +0000 (14:45 +0200)
Signed-off-by: Gordon Hecker <gh@emlix.com>
local/e2tool.lua

index b5c4c1456de37b32d0e9a9279f6afb02b02a7068..e774ce673e11ccacaae60e276d0dc1df16a18eea 100644 (file)
@@ -383,7 +383,7 @@ The newest configuration syntax supported by the tools is %s.
                  if type(tab) == "string" then
                    local path2 = info.root .. "/" .. tab
                    e2lib.log(3, "loading " .. path2)
-                   e2lib.dofile_protected(path2, { env=lua_should_have_localrec })
+                   e2lib.dofile_protected(path2, { env=lua_should_have_localrec, e2env = info.env })
                  elseif type(tab) == "table" then
                    for k, v in pairs(tab) do -- for each result...
                      if type(k) ~= "string" then