summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Junghans <junghans@lanl.gov>2020-03-10 10:46:45 -0600
committerGitHub <noreply@github.com>2020-03-10 10:46:45 -0600
commit577860761b1425c231ed6091d35d2047e5a2a34f (patch)
tree1009dd99e27c58b4576c9b1242574c24f5581bd1 /lib
parent7118e24664a62f193fb86c2178e02033a219e834 (diff)
downloadspack-577860761b1425c231ed6091d35d2047e5a2a34f.tar.gz
spack-577860761b1425c231ed6091d35d2047e5a2a34f.tar.bz2
spack-577860761b1425c231ed6091d35d2047e5a2a34f.tar.xz
spack-577860761b1425c231ed6091d35d2047e5a2a34f.zip
decompressor: add support for bz2 (#15424)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/util/compression.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/spack/spack/util/compression.py b/lib/spack/spack/util/compression.py
index d617954ab1..1688b49f1b 100644
--- a/lib/spack/spack/util/compression.py
+++ b/lib/spack/spack/util/compression.py
@@ -32,6 +32,9 @@ def decompressor_for(path, extension=None):
if extension and re.match(r'gz', extension):
gunzip = which('gunzip', required=True)
return gunzip
+ if extension and re.match(r'bz2', extension):
+ bunzip2 = which('bunzip2', required=True)
+ return bunzip2
tar = which('tar', required=True)
tar.add_default_arg('-xf')
return tar