aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2004-06-12 22:41:11 +0000
committerPhil Blundell <philb@gnu.org>2004-06-12 22:41:11 +0000
commit604ca04067dac9690f819f0ad6761ab4016f5137 (patch)
treee956b2c53ae86da6338ec2a716bdfb869a53228a /bin
parentf7da1d5fbb642ea52daf7621a76d325bdf160afc (diff)
downloadbitbake-604ca04067dac9690f819f0ad6761ab4016f5137.tar.gz
trap oe.build exceptions at top level to avoid python traceback spew
Diffstat (limited to 'bin')
-rw-r--r--bin/oemake10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/oemake b/bin/oemake
index fffedc925..f559e8620 100644
--- a/bin/oemake
+++ b/bin/oemake
@@ -410,8 +410,16 @@ if __name__ == "__main__":
oe.event.fire(oe.event.BuildStarted(buildname, pkgs_to_build, make.cfg))
for k in pkgs_to_build:
- if buildPackage(k) == 0:
+ failed = False
+ try:
+ if buildPackage(k) == 0:
+ # already diagnosed
+ failed = True
+ except oe.build.EventException:
oe.error("Build of " + k + " failed")
+ failed = True
+
+ if failed:
if make.options.abort:
sys.exit(1)