kopia lustrzana https://github.com/espressif/esp-idf
idf_tools: adds .tgz as alowed extension
rodzic
d3a400c159
commit
674a070a0d
|
@ -252,7 +252,7 @@ def mkdir_p(path):
|
|||
|
||||
def unpack(filename, destination):
|
||||
info('Extracting {0} to {1}'.format(filename, destination))
|
||||
if filename.endswith('tar.gz'):
|
||||
if filename.endswith(('.tar.gz', '.tgz')):
|
||||
archive_obj = tarfile.open(filename, 'r:gz')
|
||||
elif filename.endswith('zip'):
|
||||
archive_obj = zipfile.ZipFile(filename)
|
||||
|
|
Ładowanie…
Reference in New Issue