Add UPSTREAM_CHECK_GITTAGREGEX to check the correct latest stable
verison.

Before the patch:
$ devtool latest-version re2
INFO: Current version: 2024.03.01
INFO: Latest version: 2025
INFO: Latest version's commit: 927f5d53caf8111721e734cf24724686bb745f55

After the patch:
$ devtool latest-version re2
INFO: Current version: 2024.03.01
INFO: Latest version: 2025-11-05
INFO: Latest version's commit: 927f5d53caf8111721e734cf24724686bb745f55

Signed-off-by: Yi Zhao <[email protected]>
---
 meta-oe/recipes-support/re2/re2_2024.03.01.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-support/re2/re2_2024.03.01.bb 
b/meta-oe/recipes-support/re2/re2_2024.03.01.bb
index 5b7b241a25..a510545bab 100644
--- a/meta-oe/recipes-support/re2/re2_2024.03.01.bb
+++ b/meta-oe/recipes-support/re2/re2_2024.03.01.bb
@@ -10,6 +10,7 @@ SRC_URI = 
"git://github.com/google/re2.git;branch=main;protocol=https \
            ${@bb.utils.contains('PTEST_ENABLED', '1', 'file://run-ptest', '', 
d)} \
           "
 
+UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(-\d+)+)"
 
 DEPENDS = "abseil-cpp ${@bb.utils.contains('PTEST_ENABLED', '1', 'gtest 
googlebenchmark', '', d)}"
 
-- 
2.34.1

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

Reply via email to