Skip to contentSkip to conversation

create-spdx: remove trailing comma

PATCH New Saul Wold 1 participant 1 message Sep 7, 2021

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH 1/1 create-spdx: remove trailing comma

The trailing comma turns ref_id into an object instead of a string when added to the relationship table.

---
 meta/classes/create-spdx.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/create-spdx.bbclass +1 -1
index 1e0b360558..0a2fad5640 100644
@@ -270,7 +270,7 @@ def add_package_sources_from_debug(d, package_doc, spdx_package, package, packag
                         doc_ref.checksum.checksumValue = source_file.doc_sha1
                         package_doc.externalDocumentRefs.append(doc_ref)
 
-                    ref_id = "%s:%s" % (doc_ref.externalDocumentId, source_file.file.SPDXID),
+                    ref_id = "%s:%s" % (doc_ref.externalDocumentId, source_file.file.SPDXID)
                 else:
                     bb.debug(1, "Debug source %s with SHA256 %s not found in any dependency" % (str(debugsrc_path), file_sha256))
                 break
Signature · 1 line
2.25.1