]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.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)
committerSteve Sakoman <steve@sakoman.com>
Mon, 17 Jul 2023 14:45:01 +0000 (04:45 -1000)
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>
(cherry picked from commit 12aecd9da94b5f27041982c661e8bab316d365d4)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oe/sdk.py

index 27347667e8466e70f0b3b9e292a4932280bbbc0e..2383bd58b7ecc3c35f030c1754bb8dac8c99af1c 100644 (file)
@@ -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: