]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
pypi.bbclass: Set CVE_PRODUCT to PYPI_PACKAGE
authorAlex Kiernan <alex.kiernan@gmail.com>
Sat, 7 May 2022 11:22:11 +0000 (12:22 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 8 May 2022 22:49:32 +0000 (23:49 +0100)
The CVE product name for PyPI packages is (usually) the same as the PyPI
package name (and not our recipe name), so use that as the default.

Signed-off-by: Alex Kiernan <alexk@zuma.ai>
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/pypi.bbclass

index 9405d5860181bf12f67a5f9153dccdf87cff492e..5fa7b8a6ae237b77878fbd5bb54a8fa52f83561d 100644 (file)
@@ -24,3 +24,5 @@ S = "${WORKDIR}/${PYPI_PACKAGE}-${PV}"
 
 UPSTREAM_CHECK_URI ?= "https://pypi.org/project/${PYPI_PACKAGE}/"
 UPSTREAM_CHECK_REGEX ?= "/${PYPI_PACKAGE}/(?P<pver>(\d+[\.\-_]*)+)/"
+
+CVE_PRODUCT ?= "python:${PYPI_PACKAGE}"