mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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. (From OE-Core rev: 35d827d44d65380bfb7f6e1d0a0ee63516f822a8) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
0669b9f6c7
commit
77e084ca8f
@@ -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"]:
|
||||
|
||||
Reference in New Issue
Block a user