mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 18:32:20 +02:00
classes/lib: Remove bb.build.FuncFailed
Whilst seemingly a good idea, this exception doesn't really serve any purpose that bb.fatal() doesn't cover. Wrapping exceptions within exceptions isn't pythonic. Its not used in many places, lets clean up those and remove usage of it entirely. It may ultimately be dropped form bitbake entirely. (From OE-Core rev: efe87ce4b2154c6f1c591ed9d8f770c229b044ad) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -305,11 +305,8 @@ fakeroot python do_image_qa () {
|
||||
bb.build.exec_func(cmd, d)
|
||||
except oe.utils.ImageQAFailed as e:
|
||||
qamsg = qamsg + '\tImage QA function %s failed: %s\n' % (e.name, e.description)
|
||||
except bb.build.FuncFailed as e:
|
||||
qamsg = qamsg + '\tImage QA function %s failed' % e.name
|
||||
if e.logfile:
|
||||
qamsg = qamsg + ' (log file is located at %s)' % e.logfile
|
||||
qamsg = qamsg + '\n'
|
||||
except Exception as e:
|
||||
qamsg = qamsg + '\tImage QA function %s failed\n' % cmd
|
||||
|
||||
if qamsg:
|
||||
imgname = d.getVar('IMAGE_NAME')
|
||||
|
||||
Reference in New Issue
Block a user