#165 Use the mirrors instead of pulling directly from dl.
Merged 2 months ago by bcotton. Opened 2 months ago by bcotton.

@@ -7,7 +7,7 @@ 

  

      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_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()

This speeds up the download considerably, which is nice for our users.

Fixes #164

rebased onto 6fe466c

2 months ago

Pull-Request has been merged by bcotton

2 months ago
Metadata