Add UPSTREAM_CHECK_REGEX to check the correct latest stable
verison.

Before the patch:
$ devtool latest-version python3-gpt-image
INFO: Current version: 0.9.0
INFO: Latest version: 0.8.1

After the patch:
$ devtool latest-version python3-gpt-image
INFO: Current version: 0.9.0
INFO: Latest version: 0.9.1

Signed-off-by: Yi Zhao <[email protected]>
---
 .../python3-gpt-image/python3-gpt-image_0.9.0.bb                | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/meta-python/recipes-extended/python3-gpt-image/python3-gpt-image_0.9.0.bb 
b/meta-python/recipes-extended/python3-gpt-image/python3-gpt-image_0.9.0.bb
index a4870de113..1cdbc54b43 100644
--- a/meta-python/recipes-extended/python3-gpt-image/python3-gpt-image_0.9.0.bb
+++ b/meta-python/recipes-extended/python3-gpt-image/python3-gpt-image_0.9.0.bb
@@ -10,6 +10,8 @@ DEPENDS += "python3-pip"
 PYPI_PACKAGE = "gpt_image"
 SRC_URI[sha256sum] = 
"c06d8efc7cf8d6f3954c1c3d8544f494aa95da37fe04e38a9699ad3f57455f7e"
 
+UPSTREAM_CHECK_REGEX = "gpt_image-(?P<pver>\d+(\.\d+)+)"
+
 inherit pypi python3native python_setuptools_build_meta ptest-python-pytest
 
 do_install:append() {
-- 
2.34.1

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

Reply via email to