Add UPSTREAM_CHECK_GITTAGREGEX to check the correct latest version.

Before the patch:
$ devtool latest-version upower
INFO: Current version: 0.99.13
INFO: Latest version: 014
INFO: Latest version's commit: 8cbaa7f70b1bc8aa96f420f9061b20e5d8839ea7

After the patch:
$ devtool latest-version upower
INFO: Current version: 0.99.13
INFO: Latest version: 0.99.13
INFO: Latest version's commit: 0f6cc0a10be22d7ddd684e1cd851e4364a440494

Signed-off-by: Yi Zhao <[email protected]>
---
 meta-oe/recipes-support/upower/upower_0.99.13.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-support/upower/upower_0.99.13.bb 
b/meta-oe/recipes-support/upower/upower_0.99.13.bb
index 6110a26c0..105976316 100644
--- a/meta-oe/recipes-support/upower/upower_0.99.13.bb
+++ b/meta-oe/recipes-support/upower/upower_0.99.13.bb
@@ -8,6 +8,8 @@ SRC_URI = 
"git://gitlab.freedesktop.org/upower/upower.git;protocol=https;branch=
 SRCREV = "0f6cc0a10be22d7ddd684e1cd851e4364a440494"
 S = "${WORKDIR}/git"
 
+UPSTREAM_CHECK_GITTAGREGEX = "UPOWER_(?P<pver>\d+(\_\d+)+)"
+
 inherit autotools pkgconfig gtk-doc gettext gobject-introspection systemd
 
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
-- 
2.25.1

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

Reply via email to