Add UPSTREAM_CHECK_GITTAGREGEX to check the correct latest version.

Before the patch:
$ devtool latest-version lvm2
INFO: Current version: 2.03.11
INFO: Latest version: 19990504
INFO: Latest version's commit: af9010d115cd3b97939cec0120126aba262ec57a

After the patch:
$ devtool latest-version lvm2
INFO: Current version: 2.03.11
INFO: Latest version: 2.03.14
INFO: Latest version's commit: ef4521831d15a1785e034f6c6f536a03446f6e05

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

diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc 
b/meta-oe/recipes-support/lvm2/lvm2.inc
index 43356c9cd..cccc041bc 100644
--- a/meta-oe/recipes-support/lvm2/lvm2.inc
+++ b/meta-oe/recipes-support/lvm2/lvm2.inc
@@ -21,6 +21,8 @@ SRC_URI = "git://sourceware.org/git/lvm2.git;branch=main \
 SRCREV = "3e8bd8d1bd70691f09a170785836aeb4f83154e6"
 S = "${WORKDIR}/git"
 
+UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\_\d+)+)"
+
 inherit autotools-brokensep pkgconfig systemd
 
 LVM2_PACKAGECONFIG = "dmeventd"
-- 
2.25.1

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

Reply via email to