mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 23:02:22 +02:00
create-spdx: Fix supplier field
The correct field name is "supplier" according to SPDX schema. The "supplier" field translates to "PackageSupplier", but that's for tag-value format. (From OE-Core rev: ca8db0e0a2860ac1e3f537471fa71b43c3be0a58) Signed-off-by: Mihai Lindner <mihai.lindner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
48a6d84de1
commit
403dfe91ea
@@ -451,7 +451,7 @@ python do_create_spdx() {
|
||||
recipe.name = d.getVar("PN")
|
||||
recipe.versionInfo = d.getVar("PV")
|
||||
recipe.SPDXID = oe.sbom.get_recipe_spdxid(d)
|
||||
recipe.packageSupplier = d.getVar("SPDX_SUPPLIER")
|
||||
recipe.supplier = d.getVar("SPDX_SUPPLIER")
|
||||
if bb.data.inherits_class("native", d) or bb.data.inherits_class("cross", d):
|
||||
recipe.annotations.append(create_annotation(d, "isNative"))
|
||||
|
||||
@@ -561,7 +561,7 @@ python do_create_spdx() {
|
||||
spdx_package.name = pkg_name
|
||||
spdx_package.versionInfo = d.getVar("PV")
|
||||
spdx_package.licenseDeclared = convert_license_to_spdx(package_license, package_doc, d, found_licenses)
|
||||
spdx_package.packageSupplier = d.getVar("SPDX_SUPPLIER")
|
||||
spdx_package.supplier = d.getVar("SPDX_SUPPLIER")
|
||||
|
||||
package_doc.packages.append(spdx_package)
|
||||
|
||||
@@ -901,7 +901,7 @@ def combine_spdx(d, rootfs_name, rootfs_deploydir, rootfs_spdxid, packages):
|
||||
image.name = d.getVar("PN")
|
||||
image.versionInfo = d.getVar("PV")
|
||||
image.SPDXID = rootfs_spdxid
|
||||
image.packageSupplier = d.getVar("SPDX_SUPPLIER")
|
||||
image.supplier = d.getVar("SPDX_SUPPLIER")
|
||||
|
||||
doc.packages.append(image)
|
||||
|
||||
|
||||
@@ -218,7 +218,7 @@ class SPDXPackage(SPDXObject):
|
||||
SPDXID = _String()
|
||||
versionInfo = _String()
|
||||
downloadLocation = _String(default="NOASSERTION")
|
||||
packageSupplier = _String(default="NOASSERTION")
|
||||
supplier = _String(default="NOASSERTION")
|
||||
homepage = _String()
|
||||
licenseConcluded = _String(default="NOASSERTION")
|
||||
licenseDeclared = _String(default="NOASSERTION")
|
||||
|
||||
Reference in New Issue
Block a user