mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
classes/create-spdx: Add SHA1 to index file
(From OE-Core rev: ebfe78ad26b643ce0fb22ba5b3ede43da4a78987) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f3796b4524
commit
f1cd4f264d
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user