diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2023-09-12 08:38:33 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-13 09:32:45 +0100 |
commit | 77e084ca8fe6f3fc33b216fa2ce4c4a2dc7f8fbe (patch) | |
tree | b4d1c09a3c5510f1cc5bd474290c9028abc336ad /meta/classes/create-spdx-2.2.bbclass | |
parent | 0669b9f6c78339a9383365bddec40d2a7cec8cf1 (diff) | |
download | poky-77e084ca8fe6f3fc33b216fa2ce4c4a2dc7f8fbe.tar.gz |
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>
Diffstat (limited to 'meta/classes/create-spdx-2.2.bbclass')
-rw-r--r-- | meta/classes/create-spdx-2.2.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/create-spdx-2.2.bbclass b/meta/classes/create-spdx-2.2.bbclass index aed1a94132..9b28d124c7 100644 --- a/meta/classes/create-spdx-2.2.bbclass +++ b/meta/classes/create-spdx-2.2.bbclass | |||
@@ -302,7 +302,8 @@ def add_package_sources_from_debug(d, package_doc, spdx_package, package, packag | |||
302 | if file_path.lstrip("/") == pkg_file.fileName.lstrip("/"): | 302 | if file_path.lstrip("/") == pkg_file.fileName.lstrip("/"): |
303 | break | 303 | break |
304 | else: | 304 | else: |
305 | bb.fatal("No package file found for %s" % str(file_path)) | 305 | bb.fatal("No package file found for %s in %s; SPDX found: %s" % (str(file_path), package, |
306 | " ".join(p.fileName for p in package_files))) | ||
306 | continue | 307 | continue |
307 | 308 | ||
308 | for debugsrc in file_data["debugsrc"]: | 309 | for debugsrc in file_data["debugsrc"]: |