Make unzip quiet (#2593)
This commit is contained in:
parent
f487102c0c
commit
1ac4ae0b41
@ -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):
|
|||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user