From 65b781fed535d4fdf564f0d52a13c5433e7db523 Mon Sep 17 00:00:00 2001 From: B0nk3rZ Date: Mon, 7 Aug 2017 22:45:01 +0000 Subject: [PATCH 1/2] Added support for .tgz files --- libs/stino_runtime/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/stino_runtime/__init__.py b/libs/stino_runtime/__init__.py index 85f14f6..58a25d8 100644 --- a/libs/stino_runtime/__init__.py +++ b/libs/stino_runtime/__init__.py @@ -557,7 +557,7 @@ def unzip(zip_path, target_dir_path): except (IOError, zipfile.FileNotFoundError) as e: message_queue.put('%s' % e) is_ok = False - elif zip_path.endswith('.gz') or zip_path.endswith('.bz2'): + elif zip_path.endswith('.gz') or zip_path.endswith('.bz2') or zip_path.endswith('.tgz'): with tarfile.open(zip_path, 'r') as f: names = f.getnames() try: From 804727f1719a1f5e152030d335ee1c629bf2dd99 Mon Sep 17 00:00:00 2001 From: B0nk3rZ Date: Mon, 7 Aug 2017 22:48:07 +0000 Subject: [PATCH 2/2] Fixed download for linux platform --- libs/stino_runtime/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/stino_runtime/__init__.py b/libs/stino_runtime/__init__.py index 58a25d8..af30fc9 100644 --- a/libs/stino_runtime/__init__.py +++ b/libs/stino_runtime/__init__.py @@ -744,7 +744,7 @@ def check_tools_deps(platform_info): elif sys_info.get_os_name() == 'osx': id_text = '-apple' elif sys_info.get_os_name() == 'linux': - id_text = '%s-' % platform.machine() + id_text = '%s-pc-linux-gnu' % platform.machine() if id_text in host: go_down = True