diff options
author | Tibor Frank <tifrank@cisco.com> | 2019-08-01 12:24:08 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2019-08-01 13:19:47 +0200 |
commit | cee3ad0f9cc29ffc67d9c87c58920252671beb21 (patch) | |
tree | a119a9456954a6a1130d5bbfc81fde3c051e3b0a /resources/tools/presentation/input_data_files.py | |
parent | 2dd27f5a638b5231c0f074ca61e6b67fed9d1faf (diff) |
Trending: Add multiprocessing, remove archiving
Change-Id: I67cfde7dfc9b81fca3ae102b43f6defafe88f689
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/input_data_files.py')
-rw-r--r-- | resources/tools/presentation/input_data_files.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/resources/tools/presentation/input_data_files.py b/resources/tools/presentation/input_data_files.py index 892dfe2a07..15d7d02b7c 100644 --- a/resources/tools/presentation/input_data_files.py +++ b/resources/tools/presentation/input_data_files.py @@ -219,15 +219,15 @@ def download_and_unzip_data_file(spec, job, build, pid, log): else: return False - if spec.configuration.get("archive-inputs", True): - if spec.input["file-name"].endswith(".gz"): - if "docs.fd.io" in url: - execute_command("gzip --decompress --keep --force {0}". - format(new_name)) - else: - rename(new_name, new_name[:-3]) + if spec.input["file-name"].endswith(".gz"): + if "docs.fd.io" in url: + execute_command("gzip --decompress --keep --force {0}". + format(new_name)) + else: + rename(new_name, new_name[:-3]) + if spec.configuration.get("archive-inputs", True): execute_command("gzip --keep {0}".format(new_name[:-3])) - build["file-name"] = new_name[:-3] + build["file-name"] = new_name[:-3] if new_name.endswith(".zip"): if is_zipfile(new_name): |