summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2024-11-22 13:15:57 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-23 14:44:54 +0000
commit88489115ae83f80f8f00f296f7f775ba24884744 (patch)
tree76fc8499c51634742d24a34b4aa1973cf9e52f55 /meta
parent00fec4f0e9ae8147bd5c0f650202f8e015691ece (diff)
downloadpoky-88489115ae83f80f8f00f296f7f775ba24884744.tar.gz
lib/oe/sbom30: Prefix aliases with "http://spdx.org/spdxdocs/"
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 "http://spdx.org/spdxdocs/openembedded-alias" (From OE-Core rev: 5e0ff36e025f5e842fa90b8219b53257d65ea66a) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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):
344 alias_ext = set_alias( 344 alias_ext = set_alias(
345 e, 345 e,
346 e._id.replace(unihash, "UNIHASH").replace( 346 e._id.replace(unihash, "UNIHASH").replace(
347 namespace, self.d.getVar("PN") 347 namespace,
348 "http://spdx.org/spdxdocs/openembedded-alias/"
349 + self.d.getVar("PN"),
348 ), 350 ),
349 ) 351 )
350 352