Skip to content

Commit

Permalink
workaround missing primary mirror in the returned mirror list
Browse files Browse the repository at this point in the history
Relates: https://pagure.io/fedora-infrastructure/issue/8649

Signed-off-by: Dan Horák <dan@danny.cz>
  • Loading branch information
sharkcz committed Feb 14, 2020
1 parent bbd9ff4 commit 713747c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion check_metalink
Expand Up @@ -219,7 +219,12 @@ def _check_metalink(repo, arch, verbosity, check_files, check_mirrors,
print('Testing repo=%s, arch=%s' % (repo, arch))

mlbaseurl = 'https://mirrors.fedoraproject.org/metalink?repo=%s' + \
'&arch=%s&country=global'
'&arch=%s'

if check_mirrors:
mlbaseurl += "&country=global"
else:
mlbaseurl += "&country=US"

mlurl = mlbaseurl % (repo, arch)

Expand Down

0 comments on commit 713747c

Please sign in to comment.