diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2021-09-01 08:44:43 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-03 09:03:36 +0100 |
commit | ebfe78ad26b643ce0fb22ba5b3ede43da4a78987 (patch) | |
tree | efe4f10ca46bc17bce9c15125ba4268958e1c642 /meta/classes/create-spdx.bbclass | |
parent | 6fdea64ef53eb4de3d0e58e70ae6b391fdff6cd0 (diff) | |
download | openembedded-core-ebfe78ad26b643ce0fb22ba5b3ede43da4a78987.tar.gz |
classes/create-spdx: Add SHA1 to index file
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/create-spdx.bbclass')
-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() { visited_docs.add(path) with path.open("rb") as f: - doc = oe.spdx.SPDXDocument.from_json(f) + doc, sha1 = oe.sbom.read_doc(f) f.seek(0) if doc.documentNamespace in visited_docs: @@ -651,6 +651,7 @@ python image_combine_spdx() { index["documents"].append({ "filename": info.name, "documentNamespace": doc.documentNamespace, + "sha1": sha1, }) for ref in doc.externalDocumentRefs: |