classes/create-spdx-2.2: Add extra debugging for missing package files
PATCH 1/1 classes/create-spdx-2.2: Add extra debugging for missing package files
In a effort to debug YOCTO #15185, improve the logging when a package file cannot be found in the list of SPDX files.
Signed-off-by Joshua Watt <[email protected]>
--- meta/classes/create-spdx-2.2.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/classes/create-spdx-2.2.bbclass +2 -1
@@ -302,7 +302,8 @@ def add_package_sources_from_debug(d, package_doc, spdx_package, package, packag if file_path.lstrip("/") == pkg_file.fileName.lstrip("/"): break else: - bb.fatal("No package file found for %s" % str(file_path)) + bb.fatal("No package file found for %s in %s; SPDX found: %s" % (str(file_path), package, + " ".join(p.fileName for p in package_files))) continue for debugsrc in file_data["debugsrc"]:
Signature · 1 line
2.34.1