From: Fabio Estevam <[email protected]>

Currently, the upstream check gives incorrect results:

$ devtool latest-version libusb1
...
INFO: Current version: 1.0.26
INFO: Latest version: 1.0.27

There is no 1.0.27 release yet, only 1.0.27-rc1.

Anuj Mittal has submitted the fix in v2:
https://lists.openembedded.org/g/openembedded-core/message/192683

but the original version was applied instead.

Fix it by passing "$" to make an exact match on the version.

With this change applied, devtool reports the correct
latest version:

INFO: Current version: 1.0.26
INFO: Latest version: 1.0.26

Signed-off-by: Fabio Estevam <[email protected]>
---
 meta/recipes-support/libusb/libusb1_1.0.26.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-support/libusb/libusb1_1.0.26.bb 
b/meta/recipes-support/libusb/libusb1_1.0.26.bb
index 1b93a80f3e..2af6fcdea7 100644
--- a/meta/recipes-support/libusb/libusb1_1.0.26.bb
+++ b/meta/recipes-support/libusb/libusb1_1.0.26.bb
@@ -16,7 +16,7 @@ SRC_URI = 
"${GITHUB_BASE_URI}/download/v${PV}/libusb-${PV}.tar.bz2 \
           "
 
 GITHUB_BASE_URI = "https://github.com/libusb/libusb/releases";
-UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P<pver>\d+(\.\d+)+)"
+UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P<pver>\d+(\.\d+)+)$"
 
 SRC_URI[sha256sum] = 
"12ce7a61fc9854d1d2a1ffe095f7b5fac19ddba095c259e6067a46500381b5a5"
 
-- 
2.37.3

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

Reply via email to