]> git.e2factory.org Git - e2factory.git/commitdiff
env: environment is available for all results, even if empty
authorGordon Hecker <gh@emlix.com>
Mon, 4 Jan 2010 14:28:07 +0000 (15:28 +0100)
committerGordon Hecker <gh@emlix.com>
Fri, 12 Feb 2010 09:51:57 +0000 (10:51 +0100)
Signed-off-by: Gordon Hecker <gh@emlix.com>
local/e2tool.lua

index c9187182ae2445d7e242ab85092526b9fea4ae6f..4ba62e2caeadc2b9117f6e7a52d7bd776a682431 100644 (file)
@@ -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