]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
libusb1: Do not match on -rc versions
authorFabio Estevam <festevam@denx.de>
Fri, 5 Jan 2024 02:36:55 +0000 (23:36 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 9 Jan 2024 22:59:26 +0000 (22:59 +0000)
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 <festevam@denx.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/libusb/libusb1_1.0.26.bb

index 1b93a80f3e712e93725643ab2428085af35bcbc6..2af6fcdea794cfef1d4de8262a8b0209f0344895 100644 (file)
@@ -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"