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.

(From OE-Core rev: 12aecd9da94b5f27041982c661e8bab316d365d4)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Chen Qi 2023-06-19 00:41:08 -07:00 committed by Richard Purdie
parent 6f8dd36ca0
commit 0b838bbc1e

View File

@ -70,7 +70,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: