mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 00:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
6c6b2e9b52
commit
158f5db602
@@ -23,4 +23,4 @@ SRC_URI += "${PYPI_SRC_URI}"
|
||||
S = "${WORKDIR}/${PYPI_PACKAGE}-${PV}"
|
||||
|
||||
UPSTREAM_CHECK_URI ?= "https://pypi.python.org/pypi/${PYPI_PACKAGE}/"
|
||||
UPSTREAM_CHECK_REGEX ?= "/${PYPI_PACKAGE}/(?P<pver>(\d+[\.\-_]*)+)"
|
||||
UPSTREAM_CHECK_REGEX ?= "/${PYPI_PACKAGE}/(?P<pver>(\d+[\.\-_]*)+)/"
|
||||
|
||||
Reference in New Issue
Block a user