[oe-commits] [bitbake] 01/03: bb.build: in _exec_task, catch BBHandledException

git at git.openembedded.org git at git.openembedded.org
Wed Sep 21 21:20:33 UTC 2016


rpurdie pushed a commit to branch master
in repository bitbake.

commit 63966ada459d44d3dc7817ad2a026a22e8f6700f
Author: Christopher Larson <chris_larson at mentor.com>
AuthorDate: Fri Sep 16 13:05:11 2016 -0700

    bb.build: in _exec_task, catch BBHandledException
    
    We don't want a traceback for this exception, we need to catch it, fire
    TaskFailed, and return failure.
    
    Signed-off-by: Christopher Larson <chris_larson at mentor.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/build.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/bb/build.py b/lib/bb/build.py
index fcf0149..2ed0441 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -575,6 +575,9 @@ def _exec_task(fn, task, d, quieterr):
             logger.error(str(exc))
             event.fire(TaskFailed(task, logfn, localdata, errprinted), localdata)
         return 1
+    except bb.BBHandledException:
+        event.fire(TaskFailed(task, logfn, localdata, True), localdata)
+        return 1
     finally:
         sys.stdout.flush()
         sys.stderr.flush()

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list