summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-05-11 14:34:16 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-05-20 21:40:07 +0100
commit5402fff740c62d95b81a0663e33feb4c70e9997c (patch)
tree14745ce9ce35189cc551996624d069993ed12b67
parent05a8aad57ce250b124db16705acec557819905ae (diff)
downloadpoky-5402fff740c62d95b81a0663e33feb4c70e9997c.tar.gz
bitbake: fetch2/wget: when checking latest versions, consider all numerical directories
Previously the regex was maching x.y, but wasn't matching x, which is a problem e.g. here: https://download.gnome.org/sources/epiphany/ (the new gnome version scheme adds 40-series at the end). (Bitbake rev: 8eddd1808387025a22d8ad1b009c2894d19bf79b) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/fetch2/wget.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index 6d82f3af07..784df70c9f 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -472,7 +472,7 @@ class Wget(FetchMethod):
472 version_dir = ['', '', ''] 472 version_dir = ['', '', '']
473 version = ['', '', ''] 473 version = ['', '', '']
474 474
475 dirver_regex = re.compile(r"(?P<pfx>\D*)(?P<ver>(\d+[\.\-_])+(\d+))") 475 dirver_regex = re.compile(r"(?P<pfx>\D*)(?P<ver>(\d+[\.\-_])*(\d+))")
476 s = dirver_regex.search(dirver) 476 s = dirver_regex.search(dirver)
477 if s: 477 if s:
478 version_dir[1] = s.group('ver') 478 version_dir[1] = s.group('ver')