aboutsummaryrefslogtreecommitdiffstats
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:01:26 +0000
commitaaefb43b41a0d9b16a59643136268eb6e5d48cd2 (patch)
tree35d0ca8c660a018d012a5666d6b81b849ad3db41
parent5daecc25a59ce5bf6c31f5085e6caa7cb543517e (diff)
downloadbitbake-contrib-aaefb43b41a0d9b16a59643136268eb6e5d48cd2.tar.gz
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/cookerdata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py
index 1658bee93..d93760c1c 100644
--- a/lib/bb/cookerdata.py
+++ b/lib/bb/cookerdata.py
@@ -473,7 +473,7 @@ class CookerDataBuilder(object):
msg += (" and bitbake did not find a conf/bblayers.conf file in"
" the expected location.\nMaybe you accidentally"
" invoked bitbake from the wrong directory?")
- raise SystemExit(msg)
+ bb.fatal(msg)
if not data.getVar("TOPDIR"):
data.setVar("TOPDIR", os.path.abspath(os.getcwd()))