Nothing uses this, so clean up the code slightly.

Signed-off-by: Ross Burton <[email protected]>
---
 meta/lib/oe/package.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py
index b7030643d2b..777bf99331c 100644
--- a/meta/lib/oe/package.py
+++ b/meta/lib/oe/package.py
@@ -755,7 +755,7 @@ def 
parse_debugsources_from_dwarfsrcfiles_output(dwarfsrcfiles_output):
 
     return debugfiles.keys()
 
-def source_info(file, d, fatal=True):
+def source_info(file, d):
     # Skip static libraries when using Clang toolchain with LTO enabled.
     # In this case, .a files contain LLVM bitcode instead of ELF objects,
     # and dwarfsrcfiles cannot process them.
@@ -775,9 +775,7 @@ def source_info(file, d, fatal=True):
     # 255 means a specific file wasn't fully parsed to get the debug file 
list, which is not a fatal failure
     if retval != 0 and retval != 255:
         msg = "dwarfsrcfiles failed with exit code %s (cmd was %s)%s" % 
(retval, cmd, ":\n%s" % output if output else "")
-        if fatal:
-            bb.fatal(msg)
-        bb.note(msg)
+        bb.fatal(msg)
 
     debugsources = parse_debugsources_from_dwarfsrcfiles_output(output)
 
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#246590): 
https://lists.openembedded.org/g/openembedded-core/message/246590
Mute This Topic: https://lists.openembedded.org/mt/121411653/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to