From: Chen Qi Date: Mon, 19 Jun 2023 07:41:08 +0000 (-0700) Subject: sdk.py: error out when moving file fails X-Git-Tag: 2022-04.12-kirkstone~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ed94fef70df05c874cf0c68dcc95c5636687825;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git sdk.py: error out when moving file fails Instead of printing an error message and continuing, we should just error out when moving file fails. Signed-off-by: Chen Qi Signed-off-by: Richard Purdie (cherry picked from commit 12aecd9da94b5f27041982c661e8bab316d365d4) Signed-off-by: Steve Sakoman --- diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py index 27347667e84..2383bd58b7e 100644 --- a/meta/lib/oe/sdk.py +++ b/meta/lib/oe/sdk.py @@ -68,7 +68,7 @@ class Sdk(object, metaclass=ABCMeta): #FIXME: using umbrella exc catching because bb.utils method raises it except Exception as e: bb.debug(1, "printing the stack trace\n %s" %traceback.format_exc()) - bb.error("unable to place %s in final SDK location" % sourcefile) + bb.fatal("unable to place %s in final SDK location" % sourcefile) def mkdirhier(self, dirpath): try: