Updated resource auditing to detect invalid mirrors when using --online
This commit is contained in:
parent
afb66d0c69
commit
7eec6a3a25
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user