diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2016-12-14 16:24:02 -0600 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-12-14 14:24:02 -0800 |
commit | 1ac4ae0b4191ea0c6316ff64e1900bd9310b15a7 (patch) | |
tree | 3995be6f30d7fc6320ab0ea084c9f057f5209cfa | |
parent | f487102c0c4f57282c536d90bbf4499367049883 (diff) | |
download | spack-1ac4ae0b4191ea0c6316ff64e1900bd9310b15a7.tar.gz spack-1ac4ae0b4191ea0c6316ff64e1900bd9310b15a7.tar.bz2 spack-1ac4ae0b4191ea0c6316ff64e1900bd9310b15a7.tar.xz spack-1ac4ae0b4191ea0c6316ff64e1900bd9310b15a7.zip |
Make unzip quiet (#2593)
-rw-r--r-- | lib/spack/spack/cmd/create.py | 2 | ||||
-rw-r--r-- | lib/spack/spack/util/compression.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/create.py b/lib/spack/spack/cmd/create.py index 79825264e6..bee75cec4b 100644 --- a/lib/spack/spack/cmd/create.py +++ b/lib/spack/spack/cmd/create.py @@ -314,7 +314,7 @@ class BuildSystemGuesser(object): if stage.archive_file.endswith('.zip'): try: unzip = which('unzip') - output = unzip('-l', stage.archive_file, output=str) + output = unzip('-lq', stage.archive_file, output=str) except: output = '' else: diff --git a/lib/spack/spack/util/compression.py b/lib/spack/spack/util/compression.py index 806465dc4e..caec70064d 100644 --- a/lib/spack/spack/util/compression.py +++ b/lib/spack/spack/util/compression.py @@ -45,6 +45,7 @@ def decompressor_for(path, extension=None): if ((extension and re.match(r'\.?zip$', extension)) or path.endswith('.zip')): unzip = which('unzip', required=True) + unzip.add_default_arg('-q') return unzip if extension and re.match(r'gz', extension): gunzip = which('gunzip', required=True) |