From 6fe466c050b5d4b3cdf8c1534181a54b9f0fac45 Mon Sep 17 00:00:00 2001 From: Ben Cotton Date: Dec 21 2020 19:19:26 +0000 Subject: Use the mirrors instead of pulling directly from dl. This speeds up the download considerably, which is nice for our users. There is a risk here that some mirrors might not have all of the artifacts, but that's a risk that other editions have, too. The risk is worth the gain in performance. Fixes #164 --- diff --git a/sites/getfedora.org/util/iot_compose.py b/sites/getfedora.org/util/iot_compose.py index 9e6e3ef..8be50af 100644 --- a/sites/getfedora.org/util/iot_compose.py +++ b/sites/getfedora.org/util/iot_compose.py @@ -7,7 +7,7 @@ def _iot_checksum_link(media_format, arch, date, version, beta=False): beta_path = 'test/' if beta else '' - url = u'https://dl.fedoraproject.org/pub/alt/iot/{0}{1}/IoT/{2}/{3}/' \ + url = u'https://download.fedoraproject.org/pub/alt/iot/{0}{1}/IoT/{2}/{3}/' \ 'Fedora-IoT-IoT-{4}-{5}-{6}.0-CHECKSUM'.format( beta_path, version, @@ -20,7 +20,7 @@ def _iot_checksum_link(media_format, arch, date, version, beta=False): def iot_compose_links(version, beta=False): beta_path = 'test/' if beta else '' - BASEURL = 'https://dl.fedoraproject.org/pub/alt/iot/' + beta_path + \ + BASEURL = 'https://download.fedoraproject.org/pub/alt/iot/' + beta_path + \ str(version) + '/' try: json = requests.get(BASEURL + '/metadata/images.json').json()