audit: no longer need openssl/curl HTTP mirrors.

Mavericks' `curl` can download these fine over HTTPS.
This commit is contained in:
Mike McQuaid 2019-01-27 16:25:40 +00:00
parent 38cce518e0
commit efd69b16ed
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -1122,20 +1122,9 @@ module Homebrew
end
def audit_urls
urls = [url] + mirrors
curl_openssl_or_deps = ResourceAuditor.curl_openssl_and_deps.include?(owner.name)
if spec_name == :stable && curl_openssl_or_deps
problem "should not use xz tarballs" if url.end_with?(".xz")
unless urls.find { |u| u.start_with?("http://") }
problem "should always include at least one HTTP mirror"
end
end
return unless @online
urls = [url] + mirrors
urls.each do |url|
next if !@strict && mirrors.include?(url)