diff options
author | Konrad Weihmann <kweihmann@outlook.com> | 2020-05-09 22:32:44 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-05-12 15:20:42 +0100 |
commit | 158f5db602e378bbb9157f59811bfb799c362c11 (patch) | |
tree | 8ae1fc7344c0d05e0f50f422941b6466b0d946a0 /meta/classes/pypi.bbclass | |
parent | 6c6b2e9b524bc7d0d1814c298a68ee14476400e4 (diff) | |
download | poky-158f5db602e378bbb9157f59811bfb799c362c11.tar.gz |
pypi.bbclass: mind package suffix on version check
Some pypi packages do have suffixes like dev, or a0 or b1.
When doing a version check on these, the version will get falsely
identified as major release versions.
Add a terminating slash to rule out those false positives
(From OE-Core rev: 21e3b2226597fce9ae9328cf4bdbb4cdba3aa711)
Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/pypi.bbclass')
-rw-r--r-- | meta/classes/pypi.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/pypi.bbclass b/meta/classes/pypi.bbclass index e5d7ab3ce1..ffa8aa3ff4 100644 --- a/meta/classes/pypi.bbclass +++ b/meta/classes/pypi.bbclass | |||
@@ -23,4 +23,4 @@ SRC_URI += "${PYPI_SRC_URI}" | |||
23 | S = "${WORKDIR}/${PYPI_PACKAGE}-${PV}" | 23 | S = "${WORKDIR}/${PYPI_PACKAGE}-${PV}" |
24 | 24 | ||
25 | UPSTREAM_CHECK_URI ?= "https://pypi.python.org/pypi/${PYPI_PACKAGE}/" | 25 | UPSTREAM_CHECK_URI ?= "https://pypi.python.org/pypi/${PYPI_PACKAGE}/" |
26 | UPSTREAM_CHECK_REGEX ?= "/${PYPI_PACKAGE}/(?P<pver>(\d+[\.\-_]*)+)" | 26 | UPSTREAM_CHECK_REGEX ?= "/${PYPI_PACKAGE}/(?P<pver>(\d+[\.\-_]*)+)/" |