]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
sdk.py: error out when moving file fails
authorChen Qi <Qi.Chen@windriver.com>
Mon, 19 Jun 2023 07:41:08 +0000 (00:41 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 20 Jun 2023 22:21:18 +0000 (23:21 +0100)
Instead of printing an error message and continuing, we should just
error out when moving file fails.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/sdk.py

index 81fcf153717e6d2f614ad8443ab727612dab2975..3dc3672210b11e1193181e80ea9e184d45deb5a9 100644 (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: