From: Gordon Hecker Date: Mon, 4 Jan 2010 14:28:07 +0000 (+0100) Subject: env: environment is available for all results, even if empty X-Git-Tag: e2factory-2.3.4pre1~65 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=167eda4fd85282bb3ef759b87da43715b69b4f03;p=e2factory.git env: environment is available for all results, even if empty Signed-off-by: Gordon Hecker --- diff --git a/local/e2tool.lua b/local/e2tool.lua index c918718..4ba62e2 100644 --- a/local/e2tool.lua +++ b/local/e2tool.lua @@ -626,9 +626,13 @@ The newest configuration syntax supported by the tools is %s. return false, e:cat(re) end - -- distribute result specific environment to the results + -- distribute result specific environment to the results, + -- provide environment for all results, even if it is empty for r, res in pairs(info.results) do - res.env = info.result_env[r] or environment.new() + if not info.result_env[r] then + info.result_env[r] = environment.new() + end + res.env = info.result_env[r] end -- check for environment for non-existent results