Skip to content

Commit

Permalink
Fix filename detection
Browse files Browse the repository at this point in the history
  • Loading branch information
sshnaidm committed Mar 1, 2019
1 parent 46e80d2 commit a0e7555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tripleoci/utils.py
Expand Up @@ -236,7 +236,7 @@ def get_build_page(self):
def get_regular_file(self):
log.debug("Get regular file {}".format(self.file_link))
self.file_name = os.path.basename(
self.file_link).rstrip(".gz") + ".gz"
self.file_link).split(".gz")[0] + ".gz"
self.file_path = os.path.join(self.job_dir, self.file_name)
if os.path.exists(self.file_path):
log.debug("File {} is already downloaded".format(self.file_path))
Expand Down

0 comments on commit a0e7555

Please sign in to comment.