summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2022-05-07 12:22:11 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-08 23:50:34 +0100
commit5a9006f6defeb6b96c3c1c0ff3eed40ed4708f3a (patch)
tree6a581653db06718be566569ba6cf60e01ebec3a9
parent4a842c2696128266b3cb91c16c0f54ce17d3a953 (diff)
downloadpoky-5a9006f6defeb6b96c3c1c0ff3eed40ed4708f3a.tar.gz
pypi.bbclass: Set CVE_PRODUCT to PYPI_PACKAGE
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. (From OE-Core rev: 61f6b0ad09bf87cdc2d3f08770b7c44cad1d0e58) 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>
-rw-r--r--meta/classes/pypi.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/pypi.bbclass b/meta/classes/pypi.bbclass
index 9405d58601..5fa7b8a6ae 100644
--- a/meta/classes/pypi.bbclass
+++ b/meta/classes/pypi.bbclass
@@ -24,3 +24,5 @@ S = "${WORKDIR}/${PYPI_PACKAGE}-${PV}"
24 24
25UPSTREAM_CHECK_URI ?= "https://pypi.org/project/${PYPI_PACKAGE}/" 25UPSTREAM_CHECK_URI ?= "https://pypi.org/project/${PYPI_PACKAGE}/"
26UPSTREAM_CHECK_REGEX ?= "/${PYPI_PACKAGE}/(?P<pver>(\d+[\.\-_]*)+)/" 26UPSTREAM_CHECK_REGEX ?= "/${PYPI_PACKAGE}/(?P<pver>(\d+[\.\-_]*)+)/"
27
28CVE_PRODUCT ?= "python:${PYPI_PACKAGE}"