From 8601da95f99d51f04aa1e7d471178341c64e2d13 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Thu, 6 Aug 2015 12:54:46 -0400 Subject: [PATCH] This is always the last 4 digits. This was originally written to use everything but the first 3 digits. Which worked for a long while! That is, until the task IDs grew into a new order of magnitude and it stopped working. fedimg has been trying to curl this: https://kojipkgs.fedoraproject.org//work/tasks/17094/10617094/Fedora-Cloud-Base-23_Alpha-20150805.x86_64.raw.xz when it should have been trying to curl this: https://kojipkgs.fedoraproject.org//work/tasks/7094/10617094/Fedora-Cloud-Base-23_Alpha-20150805.x86_64.raw.xz --- fedimg/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fedimg/util.py b/fedimg/util.py index af68981..39af3ce 100644 --- a/fedimg/util.py +++ b/fedimg/util.py @@ -56,7 +56,7 @@ def get_rawxz_url(task_result): task_id = task_result['task_id'] # extension to base URL to exact file directory - koji_url_extension = "/{}/{}".format(str(task_id)[3:], str(task_id)) + koji_url_extension = "/{}/{}".format(str(task_id)[-4:], str(task_id)) full_file_location = fedimg.BASE_KOJI_TASK_URL + koji_url_extension return full_file_location + "/{}".format(file_name)