diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2023-06-19 00:41:08 -0700 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-07-07 04:30:26 -1000 |
commit | a42f3c086eda6aa98b454d19704b72dd1c0315c8 (patch) | |
tree | f868ba2ba28293aff81fcf0d95831244e4dc5e9f /meta/lib/oe/sdk.py | |
parent | 9e14d2ab801e7f35af6d43dd5d071fe29821d27c (diff) | |
download | poky-a42f3c086eda6aa98b454d19704b72dd1c0315c8.tar.gz |
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: 3a195a2da81755c2a030b5b0354ef177d826bdb2)
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>
Diffstat (limited to 'meta/lib/oe/sdk.py')
-rw-r--r-- | meta/lib/oe/sdk.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py index 81fcf15371..3dc3672210 100644 --- a/meta/lib/oe/sdk.py +++ b/meta/lib/oe/sdk.py | |||
@@ -70,7 +70,7 @@ class Sdk(object, metaclass=ABCMeta): | |||
70 | #FIXME: using umbrella exc catching because bb.utils method raises it | 70 | #FIXME: using umbrella exc catching because bb.utils method raises it |
71 | except Exception as e: | 71 | except Exception as e: |
72 | bb.debug(1, "printing the stack trace\n %s" %traceback.format_exc()) | 72 | bb.debug(1, "printing the stack trace\n %s" %traceback.format_exc()) |
73 | bb.error("unable to place %s in final SDK location" % sourcefile) | 73 | bb.fatal("unable to place %s in final SDK location" % sourcefile) |
74 | 74 | ||
75 | def mkdirhier(self, dirpath): | 75 | def mkdirhier(self, dirpath): |
76 | try: | 76 | try: |