From: Konrad Weihmann Date: Sat, 9 May 2020 20:32:44 +0000 (+0200) Subject: pypi.bbclass: mind package suffix on version check X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~11155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21e3b2226597fce9ae9328cf4bdbb4cdba3aa711;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Konrad Weihmann Signed-off-by: Richard Purdie --- diff --git a/meta/classes/pypi.bbclass b/meta/classes/pypi.bbclass index e5d7ab3ce10..ffa8aa3ff44 100644 --- a/meta/classes/pypi.bbclass +++ b/meta/classes/pypi.bbclass @@ -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(\d+[\.\-_]*)+)" +UPSTREAM_CHECK_REGEX ?= "/${PYPI_PACKAGE}/(?P(\d+[\.\-_]*)+)/"