summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-30 17:18:32 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-30 17:18:35 +0000
commit5d825b31d1133e41d3982db1b94f6a30a6fb99f7 (patch)
tree7824fcf496ac1b902b67003133118d079a43a471
parent96683ed68e11672ff22fb4a291d2628676c136f0 (diff)
downloadbitbake-5d825b31d1133e41d3982db1b94f6a30a6fb99f7.tar.gz
cooker.py: Don't dump the environment into the console log file
Dumping the environment data into the console log files directory is invariably not what the user wants or expects and leads to confusion when looking at the log directory. This change forces the logs to be disabled by default when using the -e option. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/cooker.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 7ca1ffdd9..e29905940 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -239,8 +239,10 @@ class BBCooker:
self.commandlineAction['msg'] = "No target should be used with the --environment and --buildfile options."
elif len(self.configuration.pkgs_to_build) > 0:
self.commandlineAction['action'] = ["showEnvironmentTarget", self.configuration.pkgs_to_build]
+ self.configuration.data.setVar("BB_CONSOLELOG", None)
else:
self.commandlineAction['action'] = ["showEnvironment", self.configuration.buildfile]
+ self.configuration.data.setVar("BB_CONSOLELOG", None)
elif self.configuration.buildfile is not None:
self.commandlineAction['action'] = ["buildFile", self.configuration.buildfile, self.configuration.cmd]
elif self.configuration.revisions_changed: