summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-10 21:45:17 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-14 15:25:03 +0000
commit0ade79619e38796f3b604ded47d312cac7adbc8b (patch)
treec773c4356e376627de489fdc1d5d56a305b4d132 /bitbake
parentdde7a392c576c69adecece1c62e0adfe3097510c (diff)
downloadpoky-0ade79619e38796f3b604ded47d312cac7adbc8b.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: 8001c9b5d3a3111f1134557f221325fe2593c2d9) 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')
-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 8a354fed7c..3555585c84 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -436,7 +436,7 @@ class CookerDataBuilder(object):
436 msg += (" and bitbake did not find a conf/bblayers.conf file in" 436 msg += (" and bitbake did not find a conf/bblayers.conf file in"
437 " the expected location.\nMaybe you accidentally" 437 " the expected location.\nMaybe you accidentally"
438 " invoked bitbake from the wrong directory?") 438 " invoked bitbake from the wrong directory?")
439 raise SystemExit(msg) 439 bb.fatal(msg)
440 440
441 if not data.getVar("TOPDIR"): 441 if not data.getVar("TOPDIR"):
442 data.setVar("TOPDIR", os.path.abspath(os.getcwd())) 442 data.setVar("TOPDIR", os.path.abspath(os.getcwd()))