diff options
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/bitbake | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 51cb87e285..9b68c23a9b 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake | |||
@@ -57,17 +57,6 @@ class BBConfiguration(object): | |||
57 | self.pkgs_to_build = [] | 57 | self.pkgs_to_build = [] |
58 | 58 | ||
59 | 59 | ||
60 | def print_exception(*exc_info): | ||
61 | if not isinstance(exc_info[0], SystemExit): | ||
62 | if isinstance(exc_info[0], KeyboardInterrupt): | ||
63 | logger.error("User aborted.") | ||
64 | else: | ||
65 | logger.error("Uncaught exception: ", exc_info=exc_info) | ||
66 | sys.exit(1) | ||
67 | |||
68 | sys.excepthook = print_exception | ||
69 | |||
70 | |||
71 | # Display bitbake/OE warnings via the BitBake.Warnings logger, ignoring others""" | 60 | # Display bitbake/OE warnings via the BitBake.Warnings logger, ignoring others""" |
72 | warnlog = logging.getLogger("BitBake.Warnings") | 61 | warnlog = logging.getLogger("BitBake.Warnings") |
73 | _warnings_showwarning = warnings.showwarning | 62 | _warnings_showwarning = warnings.showwarning |
@@ -216,5 +205,10 @@ Default BBFILES are the .bb files in the current directory.""") | |||
216 | server_connection.terminate() | 205 | server_connection.terminate() |
217 | 206 | ||
218 | if __name__ == "__main__": | 207 | if __name__ == "__main__": |
219 | ret = main() | 208 | try: |
209 | ret = main() | ||
210 | except Exception: | ||
211 | ret = 1 | ||
212 | import traceback | ||
213 | traceback.print_exc(5) | ||
220 | sys.exit(ret) | 214 | sys.exit(ret) |