Add UPSTREAM_CHECK_REGEX to check the correct latest stable
verison.

Before the patch:
$ devtool latest-version python3-pytest-timeout
INFO: Current version: 2.4.0
INFO: Latest version: 2.3.1

After the patch:
$ devtool latest-version python3-pytest-timeout
INFO: Current version: 2.4.0
INFO: Latest version: 2.4.0

Signed-off-by: Yi Zhao <[email protected]>
---
 .../recipes-devtools/python/python3-pytest-timeout_2.4.0.bb     | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/meta-python/recipes-devtools/python/python3-pytest-timeout_2.4.0.bb 
b/meta-python/recipes-devtools/python/python3-pytest-timeout_2.4.0.bb
index a376d02e38..3c99da4a36 100644
--- a/meta-python/recipes-devtools/python/python3-pytest-timeout_2.4.0.bb
+++ b/meta-python/recipes-devtools/python/python3-pytest-timeout_2.4.0.bb
@@ -5,6 +5,8 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=d8048cd156eda3df2e7f111b0ae9ceff"
 
 SRC_URI[sha256sum] = 
"7e68e90b01f9eff71332b25001f85c75495fc4e3a836701876183c4bcfd0540a"
 
+UPSTREAM_CHECK_REGEX = "pytest_timeout-(?P<pver>\d+(\.\d+)+)"
+
 inherit pypi python_setuptools_build_meta
 
 RDEPENDS:${PN} = "python3-pytest"
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#121556): 
https://lists.openembedded.org/g/openembedded-devel/message/121556
Mute This Topic: https://lists.openembedded.org/mt/116257101/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to