summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Watt <[email protected]>2024-11-22 13:15:57 -0700
committerRichard Purdie <[email protected]>2024-11-23 14:28:29 +0000
commit5e0ff36e025f5e842fa90b8219b53257d65ea66a (patch)
tree1aea391213e83a0c92e0fb9969278e0b820cc86f
parent87a9fadc71c8d3c1eb841c84c96146d5c56f1241 (diff)
downloadopenembedded-core-master.tar.gz
lib/oe/sbom30: Prefix aliases with "https://spdx.org/spdxdocs/"HEADmaster
While the SPDX ID aliases are primarily intended for internal use by the SPDX code, they are used in places where a valid SPDX ID is expected. In order to make sure that they still conform to this, prefix them with "https://spdx.org/spdxdocs/openembedded-alias" Signed-off-by: Joshua Watt <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
-rw-r--r--meta/lib/oe/sbom30.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oe/sbom30.py b/meta/lib/oe/sbom30.py
index 8433637de8..0a7b4c05fb 100644
--- a/meta/lib/oe/sbom30.py
+++ b/meta/lib/oe/sbom30.py
@@ -344,7 +344,9 @@ class ObjectSet(oe.spdx30.SHACLObjectSet):
alias_ext = set_alias(
e,
e._id.replace(unihash, "UNIHASH").replace(
- namespace, self.d.getVar("PN")
+ namespace,
+ "https://spdx.org/spdxdocs/openembedded-alias/"
+ + self.d.getVar("PN"),
),
)