X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Finput_data_files.py;h=9e0cfa6931176abeb1c05ec518fc300bff3d04a7;hp=24dc3a57d882a8dd72f4da5540bcfc18f09f2cd9;hb=bd18bd034ac9b6d3e50eea6a489d9ea0c3252c58;hpb=5646509aea6b43ef1efb282aad908289cc005b26 diff --git a/resources/tools/presentation/input_data_files.py b/resources/tools/presentation/input_data_files.py index 24dc3a57d8..9e0cfa6931 100644 --- a/resources/tools/presentation/input_data_files.py +++ b/resources/tools/presentation/input_data_files.py @@ -207,8 +207,8 @@ def download_and_unzip_data_file(spec, job, build): execute_command("gzip --keep {0}".format(new_name[:-3])) spec.set_input_file_name(job, build["build"], new_name[:-3]) - if spec.input["file-name"].endswith(".zip"): - if is_zipfile(file_name): + if new_name.endswith(".zip"): + if is_zipfile(new_name): return _unzip_file(spec, job, build) else: return False