summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbitbake/lib/bb/main.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py
index f4474e410f..732a315404 100755
--- a/bitbake/lib/bb/main.py
+++ b/bitbake/lib/bb/main.py
@@ -405,9 +405,6 @@ def setup_bitbake(configParams, configuration, extrafeatures=None):
405 # In status only mode there are no logs and no UI 405 # In status only mode there are no logs and no UI
406 logger.addHandler(handler) 406 logger.addHandler(handler)
407 407
408 # Clear away any spurious environment variables while we stoke up the cooker
409 cleanedvars = bb.utils.clean_environment()
410
411 if configParams.server_only: 408 if configParams.server_only:
412 featureset = [] 409 featureset = []
413 ui_module = None 410 ui_module = None
@@ -423,6 +420,10 @@ def setup_bitbake(configParams, configuration, extrafeatures=None):
423 420
424 server_connection = None 421 server_connection = None
425 422
423 # Clear away any spurious environment variables while we stoke up the cooker
424 # (done after import_extension_module() above since for example import gi triggers env var usage)
425 cleanedvars = bb.utils.clean_environment()
426
426 if configParams.remote_server: 427 if configParams.remote_server:
427 # Connect to a remote XMLRPC server 428 # Connect to a remote XMLRPC server
428 server_connection = bb.server.xmlrpcclient.connectXMLRPC(configParams.remote_server, featureset, 429 server_connection = bb.server.xmlrpcclient.connectXMLRPC(configParams.remote_server, featureset,