Merge pull request #2 in SCALE/spack from zippackages to master
# By Matthew LeGendre # Via Matthew LeGendre * commit '67203f17e09da90a62d4ae8105c3de5b73c09951': Use unzip to unpackage .zip files
This commit is contained in:
commit
d905a1350a
@ -39,6 +39,9 @@ def allowed_archive(path):
|
|||||||
|
|
||||||
def decompressor_for(path):
|
def decompressor_for(path):
|
||||||
"""Get the appropriate decompressor for a 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 = which('tar', required=True)
|
||||||
tar.add_default_arg('-xf')
|
tar.add_default_arg('-xf')
|
||||||
return tar
|
return tar
|
||||||
|
Loading…
Reference in New Issue
Block a user