diff --git a/tools/idf_tools.py b/tools/idf_tools.py index 2ec3b6f16e..3525d29be4 100755 --- a/tools/idf_tools.py +++ b/tools/idf_tools.py @@ -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)