From c451644f12b56d43b89bfe61aa82eec8781f25d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=A5=E7=BE=8E=E7=8C=AB?= Date: Sun, 6 May 2018 22:34:16 +0800 Subject: [PATCH] Support *.TAR.gz extension. (#7973) --- lib/spack/spack/util/compression.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/util/compression.py b/lib/spack/spack/util/compression.py index 0c427ab50c..7c530929ad 100644 --- a/lib/spack/spack/util/compression.py +++ b/lib/spack/spack/util/compression.py @@ -28,7 +28,7 @@ from spack.util.executable import which # Supported archive extensions. -PRE_EXTS = ["tar"] +PRE_EXTS = ["tar", "TAR"] EXTS = ["gz", "bz2", "xz", "Z", "zip", "tgz"] # Add PRE_EXTS and EXTS last so that .tar.gz is matched *before* .tar or .gz