diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2023-05-15 06:21:24 -0700 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-05-25 05:49:26 -1000 |
commit | 6828c2c8db56df9e73b1c9790cbd7dc46fcad043 (patch) | |
tree | 980feb5ce2e432ed10bd2d0aa33ecd741f7adb85 | |
parent | ed5cd048aec8c7dc417143ee569b57c83fc0d7cc (diff) | |
download | poky-6828c2c8db56df9e73b1c9790cbd7dc46fcad043.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: 1c37b96cd4fdfad21bf24b8b883e371c3bca56de)
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>
(cherry picked from commit 61f6b0ad09bf87cdc2d3f08770b7c44cad1d0e58)
Signed-off-by: Sanjay Chitroda <schitrod@cisco.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | meta/classes/pypi.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/pypi.bbclass b/meta/classes/pypi.bbclass index 87b4c85fc0..c68367449a 100644 --- a/meta/classes/pypi.bbclass +++ b/meta/classes/pypi.bbclass | |||
@@ -24,3 +24,5 @@ S = "${WORKDIR}/${PYPI_PACKAGE}-${PV}" | |||
24 | 24 | ||
25 | UPSTREAM_CHECK_URI ?= "https://pypi.org/project/${PYPI_PACKAGE}/" | 25 | UPSTREAM_CHECK_URI ?= "https://pypi.org/project/${PYPI_PACKAGE}/" |
26 | UPSTREAM_CHECK_REGEX ?= "/${PYPI_PACKAGE}/(?P<pver>(\d+[\.\-_]*)+)/" | 26 | UPSTREAM_CHECK_REGEX ?= "/${PYPI_PACKAGE}/(?P<pver>(\d+[\.\-_]*)+)/" |
27 | |||
28 | CVE_PRODUCT ?= "python:${PYPI_PACKAGE}" | ||