diff options
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/create-spdx.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/create-spdx.bbclass b/meta/classes/create-spdx.bbclass index e49d4d7e3c..5adad59065 100644 --- a/meta/classes/create-spdx.bbclass +++ b/meta/classes/create-spdx.bbclass | |||
| @@ -627,7 +627,7 @@ python image_combine_spdx() { | |||
| 627 | visited_docs.add(path) | 627 | visited_docs.add(path) |
| 628 | 628 | ||
| 629 | with path.open("rb") as f: | 629 | with path.open("rb") as f: |
| 630 | doc = oe.spdx.SPDXDocument.from_json(f) | 630 | doc, sha1 = oe.sbom.read_doc(f) |
| 631 | f.seek(0) | 631 | f.seek(0) |
| 632 | 632 | ||
| 633 | if doc.documentNamespace in visited_docs: | 633 | if doc.documentNamespace in visited_docs: |
| @@ -651,6 +651,7 @@ python image_combine_spdx() { | |||
| 651 | index["documents"].append({ | 651 | index["documents"].append({ |
| 652 | "filename": info.name, | 652 | "filename": info.name, |
| 653 | "documentNamespace": doc.documentNamespace, | 653 | "documentNamespace": doc.documentNamespace, |
| 654 | "sha1": sha1, | ||
| 654 | }) | 655 | }) |
| 655 | 656 | ||
| 656 | for ref in doc.externalDocumentRefs: | 657 | for ref in doc.externalDocumentRefs: |
