mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
classes/create-spdx-2.2: Show error if document is not found
As in other places, print a more helpful error if a SPDX document is not found when assembling documents for the final SPDX archive. (From OE-Core rev: 0a3f7e0b41552e113347d6f5edefe84fd4e47fdf) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b88e3cb69d
commit
7b7a439953
@@ -1131,6 +1131,8 @@ def combine_spdx(d, rootfs_name, rootfs_deploydir, rootfs_spdxid, packages, spdx
|
||||
|
||||
for ref in doc.externalDocumentRefs:
|
||||
ref_path = oe.sbom.doc_find_by_namespace(deploy_dir_spdx, package_archs, ref.spdxDocument)
|
||||
if not ref_path:
|
||||
bb.fatal("Cannot find any SPDX file for document %s" % ref.spdxDocument)
|
||||
collect_spdx_document(ref_path)
|
||||
|
||||
collect_spdx_document(image_spdx_path)
|
||||
|
||||
Reference in New Issue
Block a user