audit: flip GNU mirror preference.

Now that both the primary and mirror URLs use HTTPS we can flip these
around so the primary URL is the primary URL and we don't have problems
with waiting for mirror propagation.
This commit is contained in:
Mike McQuaid 2017-04-22 13:10:03 +01:00
parent 10d70aa93a
commit 94ef7318ae

View File

@ -1417,8 +1417,8 @@ class ResourceAuditor
def audit_urls
# Check GNU urls; doesn't apply to mirrors
if url =~ %r{^(?:https?|ftp)://(?!alpha).+/gnu/}
problem "Please use \"https://ftpmirror.gnu.org\" instead of #{url}."
if url =~ %r{^(?:https?|ftp)://ftpmirror.gnu.org/(.*)}
problem "Please use \"https://ftp.gnu.org/gnu/#{$1}\" instead of #{url}."
end
if mirrors.include?(url)