]> code.ossystems Code Review - openembedded-core.git/commitdiff
create-spdx: remove trailing comma
authorSaul Wold <Saul.Wold@windriver.com>
Tue, 7 Sep 2021 16:02:25 +0000 (09:02 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 8 Sep 2021 14:32:45 +0000 (15:32 +0100)
The trailing comma turns ref_id into an object instead of a string
when added to the relationship table.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/classes/create-spdx.bbclass

index 1e0b360558753fc47dcf675db5862be871eb0dc3..0a2fad564012f166d15dc42e369ed6f8ebeb5a62 100644 (file)
@@ -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