Add UPSTREAM_CHECK_GITTAGREGEX to check the correct latest version.

Before the patch:
$ devtool latest-version ndctl
INFO: Current version: v69
INFO: Latest version: 20150514
INFO: Latest version's commit: b6c7999a9f0115bac0d55f0d278674b03b0dd19e

After the patch:
$ devtool latest-version ndctl
INFO: Current version: v69
INFO: Latest version: v72
INFO: Latest version's commit: 25062cf34c70012f5d42ce1fef7e2dc129807c10

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

diff --git a/meta-oe/recipes-core/ndctl/ndctl_v69.bb 
b/meta-oe/recipes-core/ndctl/ndctl_v69.bb
index 0490b8fb6..b848ca63c 100644
--- a/meta-oe/recipes-core/ndctl/ndctl_v69.bb
+++ b/meta-oe/recipes-core/ndctl/ndctl_v69.bb
@@ -13,6 +13,8 @@ inherit autotools-brokensep pkgconfig bash-completion systemd
 SRCREV = "ea62d6d53bf6f806c4841e97a370201e18446860"
 SRC_URI = "git://github.com/pmem/ndctl.git;branch=master;protocol=https"
 
+UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>v\d+(\.\d+)*)"
+
 DEPENDS = "kmod udev json-c keyutils"
 
 S = "${WORKDIR}/git"
-- 
2.25.1

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

Reply via email to