summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatthew LeGendre <legendre1@llnl.gov>2014-03-13 15:17:26 -0700
committerMatthew LeGendre <legendre1@llnl.gov>2014-03-13 15:17:26 -0700
commit15840cc677ae2ead701b0db3000e6270ef2f7df7 (patch)
tree8c4f2c2265d92cd199f7dd9f9529df5649a62656 /lib
parentcf5e850f27cc7cdd4101e4f610f519e2111f4f9a (diff)
downloadspack-15840cc677ae2ead701b0db3000e6270ef2f7df7.tar.gz
spack-15840cc677ae2ead701b0db3000e6270ef2f7df7.tar.bz2
spack-15840cc677ae2ead701b0db3000e6270ef2f7df7.tar.xz
spack-15840cc677ae2ead701b0db3000e6270ef2f7df7.zip
Use unzip to unpackage .zip files
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 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