audit: hack around El Capitan audit failure.

This commit is contained in:
Mike McQuaid 2017-09-23 21:10:25 +01:00
parent 046486900e
commit 56ab1ef5a8

View File

@ -214,7 +214,12 @@ class FormulaAuditor
break if details[:status].to_s.start_with?("2")
end
return "The URL #{url} is not reachable" unless details[:status]
unless details[:status]
# Hack around https://github.com/Homebrew/brew/issues/3199
return if MacOS.version == :el_capitan
return "The URL #{url} is not reachable"
end
unless details[:status].start_with? "2"
return "The URL #{url} is not reachable (HTTP status code #{details[:status]})"
end