diff options
| author | Chen Qi <Qi.Chen@windriver.com> | 2023-06-19 00:41:08 -0700 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-07-21 06:27:34 -1000 |
| commit | 290224407077b4f46f1081c3af3dd482fa7f18cc (patch) | |
| tree | 68ce972cc7efaade44a478f9f705ed7487b169c6 /meta/lib/oe/sdk.py | |
| parent | be36dfcfc66d89396b8a11e3ed90ab3a3740b6c1 (diff) | |
| download | poky-290224407077b4f46f1081c3af3dd482fa7f18cc.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: 4ed94fef70df05c874cf0c68dcc95c5636687825)
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 27347667e8..2383bd58b7 100644 --- a/meta/lib/oe/sdk.py +++ b/meta/lib/oe/sdk.py | |||
| @@ -68,7 +68,7 @@ class Sdk(object, metaclass=ABCMeta): | |||
| 68 | #FIXME: using umbrella exc catching because bb.utils method raises it | 68 | #FIXME: using umbrella exc catching because bb.utils method raises it |
| 69 | except Exception as e: | 69 | except Exception as e: |
| 70 | bb.debug(1, "printing the stack trace\n %s" %traceback.format_exc()) | 70 | bb.debug(1, "printing the stack trace\n %s" %traceback.format_exc()) |
| 71 | bb.error("unable to place %s in final SDK location" % sourcefile) | 71 | bb.fatal("unable to place %s in final SDK location" % sourcefile) |
| 72 | 72 | ||
| 73 | def mkdirhier(self, dirpath): | 73 | def mkdirhier(self, dirpath): |
| 74 | try: | 74 | try: |
