diff options
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 |