diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-10-17 20:11:27 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-10-17 20:11:27 +0100 |
commit | 627d9b1bde25422ccde4e313ee3c954b5c9b2932 (patch) | |
tree | 3bdf252f71ed0a1155bef212fbf8c7415bdc2788 /bitbake-dev/bin/bitbake | |
parent | f1216d2adbb0371deedec3a5060f377e8eb65d64 (diff) | |
download | openembedded-core-627d9b1bde25422ccde4e313ee3c954b5c9b2932.tar.gz openembedded-core-627d9b1bde25422ccde4e313ee3c954b5c9b2932.tar.bz2 openembedded-core-627d9b1bde25422ccde4e313ee3c954b5c9b2932.tar.xz openembedded-core-627d9b1bde25422ccde4e313ee3c954b5c9b2932.zip |
bitbake-dev: Sync with changes upstream
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake-dev/bin/bitbake')
-rwxr-xr-x | bitbake-dev/bin/bitbake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bitbake-dev/bin/bitbake b/bitbake-dev/bin/bitbake index d9aa91042..34c49b8c5 100755 --- a/bitbake-dev/bin/bitbake +++ b/bitbake-dev/bin/bitbake @@ -48,6 +48,17 @@ class BBConfiguration( object ): setattr( self, key, val ) +def print_exception(exc, value, tb): + """ + Print the exception to stderr, only showing the traceback if bitbake + debugging is enabled. + """ + if not bb.msg.debug_level['default']: + tb = None + + sys.__excepthook__(exc, value, tb) + + #============================================================================# # main #============================================================================# |