diff options
author | Matthew LeGendre <legendre1@llnl.gov> | 2014-03-13 15:17:26 -0700 |
---|---|---|
committer | Gregory L. Lee <lee218@llnl.gov> | 2014-03-14 08:42:07 -0700 |
commit | db92db1c7a6802eeb7dcf21f4164e3b4cef73a25 (patch) | |
tree | d1ae89a7152e68a26a31f07a0ca7a2201aa2b38e /lib | |
parent | 40dda596a016c8d3bd570e1f0f28bc4a0635ca3e (diff) | |
download | spack-db92db1c7a6802eeb7dcf21f4164e3b4cef73a25.tar.gz spack-db92db1c7a6802eeb7dcf21f4164e3b4cef73a25.tar.bz2 spack-db92db1c7a6802eeb7dcf21f4164e3b4cef73a25.tar.xz spack-db92db1c7a6802eeb7dcf21f4164e3b4cef73a25.zip |
Use unzip to unpackage .zip files
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 ca98160bdd..2b8b05eb28 100644 --- a/lib/spack/spack/util/compression.py +++ b/lib/spack/spack/util/compression.py @@ -39,6 +39,9 @@ def allowed_archive(path): def decompressor_for(path): """Get the appropriate decompressor for a path.""" + if path.endswith(".zip"): + unzip = which('unzip', required=True) + return unzip tar = which('tar', required=True) tar.add_default_arg('-xf') return tar |