diff options
author | Jeff Dike <jdike@linux.intel.com> | 2010-06-29 13:33:24 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-06-29 13:33:24 +0100 |
commit | 6418d0492a60ed37d13e1060c2e8c09cd127c450 (patch) | |
tree | 6df1dffe212a6f6c7c72ce36128b200ee1f89f48 /bitbake | |
parent | f9d7e9e3be89ac9141fb0eb7c71eef5a9a82add9 (diff) | |
download | poky-6418d0492a60ed37d13e1060c2e8c09cd127c450.tar.gz |
bitbake: create cooker object after cleaning the environment
Previously, the cooker object was created before the environment was
cleaned, saving everything that was in the environment and dumping
into the run scripts.
The patch ensures that the cooker gets a cleaned environment when it's
created.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rwxr-xr-x | bitbake/bin/bitbake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 0f4ff88171..6d74e5b85d 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake | |||
@@ -155,13 +155,13 @@ Default BBFILES are the .bb files in the current directory.""" ) | |||
155 | bb.utils.init_logger(bb.msg, configuration.verbose, configuration.debug, | 155 | bb.utils.init_logger(bb.msg, configuration.verbose, configuration.debug, |
156 | configuration.debug_domains) | 156 | configuration.debug_domains) |
157 | 157 | ||
158 | cooker = bb.cooker.BBCooker(configuration, server) | ||
159 | |||
160 | # Clear away any spurious environment variables. But don't wipe the | 158 | # Clear away any spurious environment variables. But don't wipe the |
161 | # environment totally. This is necessary to ensure the correct operation | 159 | # environment totally. This is necessary to ensure the correct operation |
162 | # of the UIs (e.g. for DISPLAY, etc.) | 160 | # of the UIs (e.g. for DISPLAY, etc.) |
163 | bb.utils.clean_environment() | 161 | bb.utils.clean_environment() |
164 | 162 | ||
163 | cooker = bb.cooker.BBCooker(configuration, server) | ||
164 | |||
165 | cooker.parseCommandLine() | 165 | cooker.parseCommandLine() |
166 | 166 | ||
167 | serverinfo = server.BitbakeServerInfo(cooker.server) | 167 | serverinfo = server.BitbakeServerInfo(cooker.server) |