From 6418d0492a60ed37d13e1060c2e8c09cd127c450 Mon Sep 17 00:00:00 2001 From: Jeff Dike Date: Tue, 29 Jun 2010 13:33:24 +0100 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/bin/bitbake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake') diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 0f4ff8817..6d74e5b85 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake @@ -155,13 +155,13 @@ Default BBFILES are the .bb files in the current directory.""" ) bb.utils.init_logger(bb.msg, configuration.verbose, configuration.debug, configuration.debug_domains) - cooker = bb.cooker.BBCooker(configuration, server) - # Clear away any spurious environment variables. But don't wipe the # environment totally. This is necessary to ensure the correct operation # of the UIs (e.g. for DISPLAY, etc.) bb.utils.clean_environment() + cooker = bb.cooker.BBCooker(configuration, server) + cooker.parseCommandLine() serverinfo = server.BitbakeServerInfo(cooker.server) -- cgit v1.2.3