diff mbox series

[1/4] lib/oe/package: remove unused and optional fatal argument to source_info()

Message ID 20260924155728.295458-1-ross.burton@arm.com
State New
Headers show
Series [1/4] lib/oe/package: remove unused and optional fatal argument to source_info() | expand

Commit Message

Ross Burton Sept. 24, 2026, 3:57 p.m. UTC
Nothing uses this, so clean up the code slightly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/lib/oe/package.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
diff mbox series

Patch

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)