Updated resource auditing to detect invalid mirrors when using --online

This commit is contained in:
David Broder-Rodgers 2016-12-08 21:41:24 +00:00
parent afb66d0c69
commit 7eec6a3a25

View File

@ -1490,6 +1490,11 @@ class ResourceAuditor
return unless @online
urls.each do |url|
begin
nostdout { curl "--connect-timeout", "15", "-o", "/dev/null", "-r", "0-0", url }
rescue ErrorDuringExecution
problem "The mirror #{u} is not reachable (curl exit code #{$?.exitstatus})"
end
check_insecure_mirror(url) if url.start_with? "http:"
end
end