From 167eda4fd85282bb3ef759b87da43715b69b4f03 Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Mon, 4 Jan 2010 15:28:07 +0100 Subject: [PATCH] env: environment is available for all results, even if empty Signed-off-by: Gordon Hecker --- local/e2tool.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.39.5