From 674a070a0d6cc0a3ce682b05ffdc03771661c2e6 Mon Sep 17 00:00:00 2001 From: Felipe Neves Date: Mon, 8 Jun 2020 10:34:05 -0300 Subject: [PATCH] idf_tools: adds .tgz as alowed extension --- tools/idf_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/idf_tools.py b/tools/idf_tools.py index 2ec3b6f16..3525d29be 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)