Add UPSTREAM_CHECK_GITTAGREGEX to check the correct latest version.

Before the patch:
$ devtool latest-version ocfs2-tools
INFO: Current version: 1.8.6
INFO: Latest version: 2
INFO: Latest version's commit: 80a60d697d9052d3f196a932df3d1fb5f0df52d6

After the patch:
$ devtool latest-version ocfs2-tools
INFO: Current version: 1.8.6
INFO: Latest version: 1.8.7
INFO: Latest version's commit: 80a60d697d9052d3f196a932df3d1fb5f0df52d6

Signed-off-by: Yi Zhao <yi.z...@windriver.com>
---
 meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.8.6.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.8.6.bb 
b/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.8.6.bb
index 7c32c54..28ef4b0 100644
--- a/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.8.6.bb
+++ b/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.8.6.bb
@@ -22,6 +22,9 @@ SRC_URI = 
"git://github.com/markfasheh/ocfs2-tools;branch=master;protocol=https
     file://0001-o2cb.init.sh-Remove-unneeded-lib-lsb-init-functions.patch \
 "
 SRCREV = "4d76ceb4aa7aaa1fd595368089e99575d708f719"
+
+UPSTREAM_CHECK_GITTAGREGEX = "ocfs2-tools-(?P<pver>\d+(\.\d+)+)"
+
 S = "${WORKDIR}/git"
 
 inherit autotools-brokensep pkgconfig systemd
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55694): https://lists.yoctoproject.org/g/yocto/message/55694
Mute This Topic: https://lists.yoctoproject.org/mt/88047009/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to