]> code.ossystems Code Review - openembedded-core.git/commitdiff
pypi.bbclass: mind package suffix on version check
authorKonrad Weihmann <kweihmann@outlook.com>
Sat, 9 May 2020 20:32:44 +0000 (22:32 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 May 2020 14:19:56 +0000 (15:19 +0100)
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

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/pypi.bbclass

index e5d7ab3ce10c1415602e112e3688372f7ed145da..ffa8aa3ff44cfdeb99e286e067b82fd8a12d7a6b 100644 (file)
@@ -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+[\.\-_]*)+)/"