]> git.e2factory.org Git - e2factory.git/commitdiff
Remove build_config.env, duplicate data
authorTobias Ulmer <tu@emlix.com>
Wed, 29 May 2013 17:28:54 +0000 (19:28 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:00:21 +0000 (15:00 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/e2build.lua

index a6c10eec431d81fc6952312d6db80b6942933df4..a6c0812ef4967599cd66fa9b8801b9e10c16102d 100644 (file)
@@ -180,7 +180,6 @@ end
 -- @field profile Configuration file passed to the shell (string).
 -- @field groups     table of strings: chroot groups
 -- @field builtin_env Environment that's built in like E2_TMPDIR.
--- @field env Environment specified by the user.
 
 --- Generate build_config and store in res.build_config.
 -- @param info Info table.
@@ -242,7 +241,6 @@ function e2build.build_config(info, r)
     bc.builtin_env:set("T", bc.Tc)
     bc.builtin_env:set("r", r)
     bc.builtin_env:set("R", r)
-    bc.env = e2tool.env_by_result(info, r)
 
     res.build_config = strict.lock(bc)
 
@@ -695,7 +693,7 @@ local function sources(info, r, return_flags)
         res.build_config.Tc))
         -- install project specific environment variables
         local file = string.format("%s/env/env", res.build_config.T)
-        rc, re = write_environment_script(res.build_config.env, file)
+        rc, re = write_environment_script(e2tool.env_by_result(info, r), file)
         if not rc then
             return false, e:cat(re)
         end
@@ -1195,7 +1193,7 @@ local function collect_project(info, r, return_flags)
         local file, line
         -- generate environment script
         file = string.format("%s/env", destdir)
-        rc, re = write_environment_script(rn.build_config.env, file)
+        rc, re = write_environment_script(e2tool.env_by_result(info, n), file)
         if not rc then
             return false, e:cat(re)
         end