diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-12-06 17:41:19 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-12-08 20:22:53 +0000 |
commit | 9bf81a3d0952e6e45777af8f74e2e5811ca892b0 (patch) | |
tree | d7258fe98f80bd594bd08e434fb7a3befb052c39 /bitbake | |
parent | acd77c3ac9f5272908cbeb96426c2f80fa75a48f (diff) | |
download | poky-9bf81a3d0952e6e45777af8f74e2e5811ca892b0.tar.gz |
bitbake: fetch2/wget: do not hardcode tarball compressors in version check
(Bitbake rev: ba3aa8591327d43935f000c6884637997438ecb2)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-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 d48998a98f..253cabce75 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py | |||
@@ -593,7 +593,7 @@ class Wget(FetchMethod): | |||
593 | 593 | ||
594 | # src.rpm extension was added only for rpm package. Can be removed if the rpm | 594 | # src.rpm extension was added only for rpm package. Can be removed if the rpm |
595 | # packaged will always be considered as having to be manually upgraded | 595 | # packaged will always be considered as having to be manually upgraded |
596 | psuffix_regex = r"(tar\.gz|tgz|tar\.bz2|zip|xz|tar\.lz|rpm|bz2|orig\.tar\.gz|tar\.xz|src\.tar\.gz|src\.tgz|svnr\d+\.tar\.bz2|stable\.tar\.gz|src\.rpm)" | 596 | psuffix_regex = r"(tar\.\w+|tgz|zip|xz|rpm|bz2|orig\.tar\.\w+|src\.tar\.\w+|src\.tgz|svnr\d+\.tar\.\w+|stable\.tar\.\w+|src\.rpm)" |
597 | 597 | ||
598 | # match name, version and archive type of a package | 598 | # match name, version and archive type of a package |
599 | package_regex_comp = re.compile(r"(?P<name>%s?\.?v?)(?P<pver>%s)(?P<arch>%s)?[\.-](?P<type>%s$)" | 599 | package_regex_comp = re.compile(r"(?P<name>%s?\.?v?)(?P<pver>%s)(?P<arch>%s)?[\.-](?P<type>%s$)" |