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 <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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"]: