summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-17 14:58:50 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-17 15:10:02 +0000
commitca4721c64ab68d56fa00d99ea07fc444c87a4313 (patch)
tree8660607419c5e0e86197361fea5800e254b2e5e7 /bitbake
parentd369a45ae7c6b82f7ae337a56a673eed5afc461b (diff)
downloadpoky-ca4721c64ab68d56fa00d99ea07fc444c87a4313.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: aaefb43b41a0d9b16a59643136268eb6e5d48cd2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-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 1658bee93c..d93760c1c1 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -473,7 +473,7 @@ class CookerDataBuilder(object):
473 msg += (" and bitbake did not find a conf/bblayers.conf file in" 473 msg += (" and bitbake did not find a conf/bblayers.conf file in"
474 " the expected location.\nMaybe you accidentally" 474 " the expected location.\nMaybe you accidentally"
475 " invoked bitbake from the wrong directory?") 475 " invoked bitbake from the wrong directory?")
476 raise SystemExit(msg) 476 bb.fatal(msg)
477 477
478 if not data.getVar("TOPDIR"): 478 if not data.getVar("TOPDIR"):
479 data.setVar("TOPDIR", os.path.abspath(os.getcwd())) 479 data.setVar("TOPDIR", os.path.abspath(os.getcwd()))