Add UPSTREAM_CHECK_GITTAGREGEX to check the correct latest stable
verison.

Before the patch:
$ devtool latest-version lmsensors
INFO: Current version: 3.6.0
INFO: Latest version: 3
INFO: Latest version's commit: 1667b850a1ce38151dae17156276f981be6fb557

After the patch:
$ devtool latest-version lmsensors
INFO: Current version: 3.6.0
INFO: Latest version: 3-6-0
INFO: Latest version's commit: 1667b850a1ce38151dae17156276f981be6fb557

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

diff --git a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb 
b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb
index af0f5a7999..d5cd2cd195 100644
--- a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb
+++ b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb
@@ -18,6 +18,8 @@ SRC_URI = 
"git://github.com/lm-sensors/lm-sensors.git;protocol=https;branch=mast
 "
 SRCREV = "1667b850a1ce38151dae17156276f981be6fb557"
 
+UPSTREAM_CHECK_GITTAGREGEX = "V(?P<pver>\d+(-\d+)+)"
+
 inherit update-rc.d systemd
 
 RDEPENDS:${PN}-dev = ""
-- 
2.34.1

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

Reply via email to