summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-10 21:45:59 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-14 15:05:30 +0000
commitb217614969399c62bded1b84cd2e2b404c86c6a0 (patch)
treed2310458d7f39a1200c6afa3d66743d4e2326b5d /bitbake/lib
parent02ad2ab205da281f88505b56ccbbbc7fec593e32 (diff)
downloadpoky-b217614969399c62bded1b84cd2e2b404c86c6a0.tar.gz
bitbake: cookerdata: Remove incorrect SystemExit usage
Calling SystemExit doesn't work well with server/client usage since the string isn't printed to the right place. Use bb.fatal() instead which prints the right log output and raises and handled exception which then shows correctly on the UI. (Bitbake rev: b9ae7164d9e744e8eb9aaff79218f57233a449b7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/cookerdata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py
index fe5696c704..efa671aa07 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -435,7 +435,7 @@ class CookerDataBuilder(object):
435 msg += (" and bitbake did not find a conf/bblayers.conf file in" 435 msg += (" and bitbake did not find a conf/bblayers.conf file in"
436 " the expected location.\nMaybe you accidentally" 436 " the expected location.\nMaybe you accidentally"
437 " invoked bitbake from the wrong directory?") 437 " invoked bitbake from the wrong directory?")
438 raise SystemExit(msg) 438 bb.fatal(msg)
439 439
440 if not data.getVar("TOPDIR"): 440 if not data.getVar("TOPDIR"):
441 data.setVar("TOPDIR", os.path.abspath(os.getcwd())) 441 data.setVar("TOPDIR", os.path.abspath(os.getcwd()))