mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
Merge branch 'bugfix/tools_filename' into 'master'
idf_tools: adds .tgz as alowed extension See merge request espressif/esp-idf!9103
This commit is contained in:
@@ -252,7 +252,7 @@ def mkdir_p(path):
|
|||||||
|
|
||||||
def unpack(filename, destination):
|
def unpack(filename, destination):
|
||||||
info('Extracting {0} to {1}'.format(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')
|
archive_obj = tarfile.open(filename, 'r:gz')
|
||||||
elif filename.endswith('zip'):
|
elif filename.endswith('zip'):
|
||||||
archive_obj = zipfile.ZipFile(filename)
|
archive_obj = zipfile.ZipFile(filename)
|
||||||
|
Reference in New Issue
Block a user