Add UPSTREAM_CHECK_GITTAGREGEX to check the correct latest version.

Before the patch:
$ devtool latest-version resource-agents
INFO: Current version: 4.5.0
INFO: Latest version: 10
INFO: Latest version's commit: 5cf93783eafa22e8b82d50834bfb76b9e8434783

After the patch:
$ devtool latest-version resource-agents
INFO: Current version: 4.5.0
INFO: Latest version: 4.10.0
INFO: Latest version's commit: fd0720f73a06042ad0a5475a3398096b2912cf5f

Signed-off-by: Yi Zhao <[email protected]>
---
 .../cluster-resource-agents/resource-agents_4.5.0.bb            | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents_4.5.0.bb 
b/meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents_4.5.0.bb
index 00ddd22..c8b2fbd 100644
--- 
a/meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents_4.5.0.bb
+++ 
b/meta-cgl-common/recipes-cgl/cluster-resource-agents/resource-agents_4.5.0.bb
@@ -24,6 +24,8 @@ SRC_URI = 
"git://github.com/ClusterLabs/resource-agents;branch=main;protocol=htt
 
 SRCREV = "fee181320547365d7f8c88cca2b32801412b933d" 
 
+UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
+
 S="${WORKDIR}/git"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
-- 
2.25.1

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

Reply via email to