Add UPSTREAM_CHECK_GITTAGREGEX to check the correct latest stable
verison.

Before the patch:
$ devtool latest-version ipmitool
INFO: Current version: 1.8.19
INFO: Latest version: 10.
INFO: Latest version's commit: 990f9672c9581ab5fcb6bfed98f5da12edd29411

After the patch:
$ devtool latest-version ipmitool
INFO: Current version: 1.8.19
INFO: Latest version: 1.8.19
INFO: Latest version's commit: 19d78782d795d0cf4ceefe655f616210c9143e62

Signed-off-by: Yi Zhao <[email protected]>
---
 meta-oe/recipes-kernel/ipmitool/ipmitool_1.8.19.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-oe/recipes-kernel/ipmitool/ipmitool_1.8.19.bb 
b/meta-oe/recipes-kernel/ipmitool/ipmitool_1.8.19.bb
index dcd3edaf3..f53150cfa 100644
--- a/meta-oe/recipes-kernel/ipmitool/ipmitool_1.8.19.bb
+++ b/meta-oe/recipes-kernel/ipmitool/ipmitool_1.8.19.bb
@@ -26,6 +26,9 @@ SRC_URI = 
"git://codeberg.org/ipmitool/ipmitool;protocol=https;branch=master \
            ${IANA_ENTERPRISE_NUMBERS} \
            file://0001-csv-revision-Drop-the-git-revision-info.patch \
            "
+
+UPSTREAM_CHECK_GITTAGREGEX = "IPMITOOL_(?P<pver>\d+(_\d+)+)"
+
 IANA_ENTERPRISE_NUMBERS ?= ""
 
 # Add these via bbappend if this database is needed by the system
-- 
2.25.1

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

Reply via email to