Skip to content
Snippets Groups Projects
Commit 1ac4ae0b authored by Adam J. Stewart's avatar Adam J. Stewart Committed by Todd Gamblin
Browse files

Make unzip quiet (#2593)

parent f487102c
No related branches found
No related tags found
No related merge requests found
...@@ -314,7 +314,7 @@ def __call__(self, stage, url): ...@@ -314,7 +314,7 @@ def __call__(self, stage, url):
if stage.archive_file.endswith('.zip'): if stage.archive_file.endswith('.zip'):
try: try:
unzip = which('unzip') unzip = which('unzip')
output = unzip('-l', stage.archive_file, output=str) output = unzip('-lq', stage.archive_file, output=str)
except: except:
output = '' output = ''
else: else:
......
...@@ -45,6 +45,7 @@ def decompressor_for(path, extension=None): ...@@ -45,6 +45,7 @@ def decompressor_for(path, extension=None):
if ((extension and re.match(r'\.?zip$', extension)) or if ((extension and re.match(r'\.?zip$', extension)) or
path.endswith('.zip')): path.endswith('.zip')):
unzip = which('unzip', required=True) unzip = which('unzip', required=True)
unzip.add_default_arg('-q')
return unzip return unzip
if extension and re.match(r'gz', extension): if extension and re.match(r'gz', extension):
gunzip = which('gunzip', required=True) gunzip = which('gunzip', required=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment