Add UPSTREAM_CHECK_PYPI_PACKAGE to check the correct latest stable
verison.

Before the patch:
$ devtool latest-version python3-paho-mqtt
INFO: Current version: 2.1.0
INFO: Latest version: 1.6.1

Before the patch:
$ devtool latest-version python3-paho-mqtt
INFO: Current version: 2.1.0
INFO: Latest version: 2.1.0

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

diff --git a/meta-python/recipes-devtools/python/python3-paho-mqtt_2.1.0.bb 
b/meta-python/recipes-devtools/python/python3-paho-mqtt_2.1.0.bb
index 86cf034394..aa88711d69 100644
--- a/meta-python/recipes-devtools/python/python3-paho-mqtt_2.1.0.bb
+++ b/meta-python/recipes-devtools/python/python3-paho-mqtt_2.1.0.bb
@@ -11,6 +11,8 @@ SRC_URI[sha256sum] = 
"12d6e7511d4137555a3f6ea167ae846af2c7357b10bc6fa4f7c3968fc1
 
 PYPI_SRC_URI = 
"https://files.pythonhosted.org/packages/39/15/0a6214e76d4d32e7f663b109cf71fb22561c2be0f701d67f93950cd40542/paho_mqtt-${PV}.tar.gz";
 
+UPSTREAM_CHECK_PYPI_PACKAGE = "paho_mqtt"
+
 S = "${UNPACKDIR}/paho_mqtt-${PV}"
 
 DEPENDS += "python3-pytest-runner-native"
-- 
2.34.1

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

Reply via email to