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>
This commit is contained in:
Joshua Watt
2024-11-22 13:15:57 -07:00
committed by Richard Purdie
parent 00fec4f0e9
commit 88489115ae

View File

@@ -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,
"http://spdx.org/spdxdocs/openembedded-alias/"
+ self.d.getVar("PN"),
),
)