From: Gordon Hecker Date: Mon, 27 Apr 2009 12:10:53 +0000 (+0200) Subject: make current environment available to nested environment config files X-Git-Tag: e2factory-2.3.1pre1~38 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=c8a42104d3a6d50d1f568cafa1c2be4d12d3fbaf;p=e2factory.git make current environment available to nested environment config files Signed-off-by: Gordon Hecker --- diff --git a/local/e2tool.lua b/local/e2tool.lua index b5c4c14..e774ce6 100644 --- a/local/e2tool.lua +++ b/local/e2tool.lua @@ -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