diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-14 12:30:27 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-14 12:36:04 +0000 |
commit | 5d968368bc8b5813b0579910e23bd50fa6bd874b (patch) | |
tree | 8918d60950ae0df43ee16cd887a3084e9fec1455 /bitbake/bin | |
parent | dc637ae860f57161c97b04d3e91612d3e1600f37 (diff) | |
download | poky-5d968368bc8b5813b0579910e23bd50fa6bd874b.tar.gz |
bitbake: bin/bitbake, bb/__init__: Move BBDEBUG handling to bin/bitbake
The method this older code was accessing doesn't exist. A library shouldn't
be changing behaviour based on the environment anyway when sepcific function
calls exist to correctly setup the logging. Fix the crash if BBDEBUG was used
by moving the code to bin/bitbake.
[YOCTO #3319]
(Bitbake rev: 3a1b75037fe1e5282ffd40b037e93353405faa45)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/bitbake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 324ee4fa53..e86d59bd62 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake | |||
@@ -214,6 +214,11 @@ Default BBFILES are the .bb files in the current directory.""") | |||
214 | if configuration.bind and configuration.servertype != "xmlrpc": | 214 | if configuration.bind and configuration.servertype != "xmlrpc": |
215 | sys.exit("FATAL: If '-B' or '--bind' is defined, we must set the servertype as 'xmlrpc'.\n") | 215 | sys.exit("FATAL: If '-B' or '--bind' is defined, we must set the servertype as 'xmlrpc'.\n") |
216 | 216 | ||
217 | if "BBDEBUG" in os.environ: | ||
218 | level = int(os.environ["BBDEBUG"]) | ||
219 | if level > configuration.debug: | ||
220 | configuration.debug = level | ||
221 | |||
217 | bb.msg.init_msgconfig(configuration.verbose, configuration.debug, | 222 | bb.msg.init_msgconfig(configuration.verbose, configuration.debug, |
218 | configuration.debug_domains) | 223 | configuration.debug_domains) |
219 | 224 | ||