The CPE reference type should be the short name ("cpe23Type") not the
full RDF IRI.
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
for cpe_id in cpe_ids:
cpe = oe.spdx.SPDXExternalReference()
cpe.referenceCategory = "SECURITY"
- cpe.referenceType = "http://spdx.org/rdf/references/cpe23Type"
+ cpe.referenceType = "cpe23Type"
cpe.referenceLocator = cpe_id
recipe.externalRefs.append(cpe)