Add UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX to check the correct
latest stable verison.

Before the patch:
$ devtool latest-version libtimezonemap
INFO: Current version: 0.4.6
INFO: Latest version:

After the patch:
$ devtool latest-version libtimezonemap
INFO: Current version: 0.4.6
INFO: Latest version: 0.4.6

Signed-off-by: Yi Zhao <[email protected]>
---
 .../recipes-gnome/libtimezonemap/libtimezonemap_0.4.6.bb       | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-gnome/recipes-gnome/libtimezonemap/libtimezonemap_0.4.6.bb 
b/meta-gnome/recipes-gnome/libtimezonemap/libtimezonemap_0.4.6.bb
index 3f37890e8d..7c8e410b09 100644
--- a/meta-gnome/recipes-gnome/libtimezonemap/libtimezonemap_0.4.6.bb
+++ b/meta-gnome/recipes-gnome/libtimezonemap/libtimezonemap_0.4.6.bb
@@ -8,6 +8,9 @@ SRC_URI = 
"${DEBIAN_MIRROR}/main/libt/${BPN}/${BPN}_${PV}.orig.tar.gz;downloadfi
            file://0001-configure.ac-correct-the-version.patch"
 SRC_URI[sha256sum] = 
"0d634cc2476d8f57d1ee1864bd4f442180ae4bf040a9ae4bf73b66bbd85d7195"
 
+UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/libt/libtimezonemap"
+UPSTREAM_CHECK_REGEX = "libtimezonemap_(?P<pver>\d+(\.\d+)+)"
+
 DEPENDS = "gtk+3 gdk-pixbuf libsoup-2.4 json-glib gnome-common-native"
 
 B = "${S}"
-- 
2.34.1

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

Reply via email to