diff options
| author | Alex Kiernan <alex.kiernan@gmail.com> | 2022-05-07 12:22:11 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-05-20 10:08:06 +0100 |
| commit | 524a41059d77572dbb30df65fe6b3401bd05763b (patch) | |
| tree | 35087e09932b10a03e6098b91e860f08c601eb78 /meta/classes | |
| parent | 718700b20e08f45f29da114dbd3d79a12b48478f (diff) | |
| download | poky-524a41059d77572dbb30df65fe6b3401bd05763b.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: 80a1de36bc86a864d52292ef9770b77480f3c67b)
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: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
| -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 9405d58601..5fa7b8a6ae 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}" | ||
