diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-05-11 14:34:16 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-05-14 07:57:57 +0100 |
commit | 37792f1410b705cd57f387660e3cdebfc3ea784d (patch) | |
tree | 2af7086275988eca2c7e3f0a161f0528047feb42 | |
parent | bac39de14e1fc52ed0388459a45d586c24a93eac (diff) | |
download | poky-37792f1410b705cd57f387660e3cdebfc3ea784d.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: c03101576f447263ea38e8464210d3a3a2c27226)
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.py | 2 |
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') |