Make unzip quiet (#2593)

This commit is contained in:
Adam J. Stewart 2016-12-14 16:24:02 -06:00 committed by Todd Gamblin
parent f487102c0c
commit 1ac4ae0b41
2 changed files with 2 additions and 1 deletions

View File

@ -314,7 +314,7 @@ def __call__(self, stage, url):
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:

View File

@ -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)