Add support for .tbz file extensions (#24479)
This commit is contained in:
parent
3087d74ca7
commit
2bc0c0ea59
@ -429,6 +429,8 @@ def test_url_parse_offset(name, noffset, ver, voffset, path):
|
|||||||
# .tgz
|
# .tgz
|
||||||
('ADOL-C', '2.6.1',
|
('ADOL-C', '2.6.1',
|
||||||
'http://www.coin-or.org/download/source/ADOL-C/ADOL-C-2.6.1.tgz'),
|
'http://www.coin-or.org/download/source/ADOL-C/ADOL-C-2.6.1.tgz'),
|
||||||
|
# .tbz
|
||||||
|
('mpfr', '4.0.1', 'https://ftpmirror.gnu.org/mpfr/mpfr-4.0.1.tbz'),
|
||||||
# .tbz2
|
# .tbz2
|
||||||
('mpfr', '4.0.1', 'https://ftpmirror.gnu.org/mpfr/mpfr-4.0.1.tbz2'),
|
('mpfr', '4.0.1', 'https://ftpmirror.gnu.org/mpfr/mpfr-4.0.1.tbz2'),
|
||||||
# .txz
|
# .txz
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
# Supported archive extensions.
|
# Supported archive extensions.
|
||||||
PRE_EXTS = ["tar", "TAR"]
|
PRE_EXTS = ["tar", "TAR"]
|
||||||
EXTS = ["gz", "bz2", "xz", "Z"]
|
EXTS = ["gz", "bz2", "xz", "Z"]
|
||||||
NOTAR_EXTS = ["zip", "tgz", "tbz2", "txz"]
|
NOTAR_EXTS = ["zip", "tgz", "tbz", "tbz2", "txz"]
|
||||||
|
|
||||||
# Add PRE_EXTS and EXTS last so that .tar.gz is matched *before* .tar or .gz
|
# Add PRE_EXTS and EXTS last so that .tar.gz is matched *before* .tar or .gz
|
||||||
ALLOWED_ARCHIVE_TYPES = [".".join(ext) for ext in product(
|
ALLOWED_ARCHIVE_TYPES = [".".join(ext) for ext in product(
|
||||||
|
Loading…
Reference in New Issue
Block a user