summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2023-09-28 12:34:13 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-29 23:11:59 +0100
commit7b7a439953443aa35a3462e43e34579198d3a33f (patch)
tree2bb818ec65373a96cd2d67c3194da17e5c3971fc /meta/classes
parentb88e3cb69d11ab491ea44fd71109924bf0a80cbb (diff)
downloadpoky-7b7a439953443aa35a3462e43e34579198d3a33f.tar.gz
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>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/create-spdx-2.2.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/create-spdx-2.2.bbclass b/meta/classes/create-spdx-2.2.bbclass
index 3ee1b7ee0d..b0aef80db1 100644
--- a/meta/classes/create-spdx-2.2.bbclass
+++ b/meta/classes/create-spdx-2.2.bbclass
@@ -1131,6 +1131,8 @@ def combine_spdx(d, rootfs_name, rootfs_deploydir, rootfs_spdxid, packages, spdx
1131 1131
1132 for ref in doc.externalDocumentRefs: 1132 for ref in doc.externalDocumentRefs:
1133 ref_path = oe.sbom.doc_find_by_namespace(deploy_dir_spdx, package_archs, ref.spdxDocument) 1133 ref_path = oe.sbom.doc_find_by_namespace(deploy_dir_spdx, package_archs, ref.spdxDocument)
1134 if not ref_path:
1135 bb.fatal("Cannot find any SPDX file for document %s" % ref.spdxDocument)
1134 collect_spdx_document(ref_path) 1136 collect_spdx_document(ref_path)
1135 1137
1136 collect_spdx_document(image_spdx_path) 1138 collect_spdx_document(image_spdx_path)