wget.py: fix incorrect regexes
PATCH 1/1 wget.py: fix incorrect regexes
In reply to a message not in the archive[\.-_] means "any character between . and _"
What was meant here is certainly "any character from the three characters .-_"
Signed-off-by Alexander Kanavin <[email protected]>
--- bitbake/lib/bb/fetch2/wget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
bitbake/lib/bb/fetch2/wget.py +2 -2
@@ -406,7 +406,7 @@ class Wget(FetchMethod): version_dir = ['', '', ''] version = ['', '', ''] - dirver_regex = re.compile("(\D*)((\d+[\.-_])+(\d+))") + dirver_regex = re.compile("(\D*)((\d+[\.\-_])+(\d+))") s = dirver_regex.search(dirver) if s: version_dir[1] = s.group(2)
@@ -465,7 +465,7 @@ class Wget(FetchMethod): pn_regex = "(%s|%s|%s)" % (pn_prefix1, pn_prefix2, pn_prefix3) # match version - pver_regex = "(([A-Z]*\d+[a-zA-Z]*[\.-_]*)+)" + pver_regex = "(([A-Z]*\d+[a-zA-Z]*[\.\-_]*)+)" # match arch parch_regex = "-source|_all_"
Signature · 1 line
2.1.4