X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Finput_data_files.py;fp=resources%2Ftools%2Fpresentation%2Finput_data_files.py;h=15d7d02b7c05aa21706ef17ae0c5f1c6db4b4e39;hp=892dfe2a07a49d7cd2909616f1bc0f8e95cfb6c6;hb=cee3ad0f9cc29ffc67d9c87c58920252671beb21;hpb=2dd27f5a638b5231c0f074ca61e6b67fed9d1faf 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):