[bitbake-devel] [PATCH] bb.build: in _exec_task, catch errors from TaskStarted

Christopher Larson chris_larson at mentor.com
Fri Sep 16 20:04:01 UTC 2016


On Fri, Sep 16, 2016 at 1:01 PM, Christopher Larson <chris_larson at mentor.com
> wrote:

> On Fri, Sep 16, 2016 at 1:00 PM, Christopher Larson <kergoth at gmail.com>
> wrote:
>
>> From: Christopher Larson <chris_larson at mentor.com>
>>
>> We want any exceptions raised by the TaskStarted event handlers to be
>> caught
>> rather than unconditionally hitting the exception formatting + traceback
>> in
>> exec_task, otherwise we can't cleanly exit the task with a nice message
>> from
>> such a handler.
>>
>> 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.
>>
>> Signed-off-by: Christopher Larson <chris_larson at mentor.com>
>>
>
> This supercedes 'bb.build: in _exec_task, catch BBHandledException’.
>

Sigh, copy/paste error. This supercedes 'bb.build: in _exec_task, move
TaskStarted into try/except’. We want this and the BBHandledException patch
both applied. I’ll just send a v2 to avoid confusion :)
-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20160916/8f09367e/attachment-0002.html>


More information about the bitbake-devel mailing list