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 | poky-627d9b1bde25422ccde4e313ee3c954b5c9b2932.tar.gz | |
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 d9aa910422..34c49b8c58 100755 --- a/bitbake-dev/bin/bitbake +++ b/bitbake-dev/bin/bitbake | |||
| @@ -48,6 +48,17 @@ class BBConfiguration( object ): | |||
| 48 | setattr( self, key, val ) | 48 | setattr( self, key, val ) |
| 49 | 49 | ||
| 50 | 50 | ||
| 51 | def print_exception(exc, value, tb): | ||
| 52 | """ | ||
| 53 | Print the exception to stderr, only showing the traceback if bitbake | ||
| 54 | debugging is enabled. | ||
| 55 | """ | ||
| 56 | if not bb.msg.debug_level['default']: | ||
| 57 | tb = None | ||
| 58 | |||
| 59 | sys.__excepthook__(exc, value, tb) | ||
| 60 | |||
| 61 | |||
| 51 | #============================================================================# | 62 | #============================================================================# |
| 52 | # main | 63 | # main |
| 53 | #============================================================================# | 64 | #============================================================================# |
