diff options
author | Christoph Junghans <junghans@lanl.gov> | 2020-03-10 10:46:45 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 10:46:45 -0600 |
commit | 577860761b1425c231ed6091d35d2047e5a2a34f (patch) | |
tree | 1009dd99e27c58b4576c9b1242574c24f5581bd1 /lib | |
parent | 7118e24664a62f193fb86c2178e02033a219e834 (diff) | |
download | spack-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.py | 3 |
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 |