]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake: bb.build: in _exec_task, catch errors from TaskStarted
authorChristopher Larson <chris_larson@mentor.com>
Tue, 4 Oct 2016 16:11:23 +0000 (09:11 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 5 Oct 2016 09:28:12 +0000 (10:28 +0100)
commit7d27275ef83c38104e898ff259be173ad71743a7
tree9a3bf0be2fcb532b913c10187f8d3e10685fc640
parent1110dde73aa04772090ca7b2b21a953d49734fb0
bitbake: bb.build: in _exec_task, catch errors from TaskStarted

We don't always want a traceback when an exception is raised by the
TaskStarted event handler. Silently return if we get a SystemExit or
HandledException, and print the error and return for FuncFailed.

This is done via a separate try/catch block, to avoid firing TaskFailed if all
the TaskStarted event handlers didn't complete, otherwise the bitbake UIs get
unhappy.

(Bitbake rev: ca5b788280ad4303cc08a376e847cbbeda31970c)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/build.py