audit: no longer need openssl/curl HTTP mirrors.
Mavericks' `curl` can download these fine over HTTPS.
This commit is contained in:
parent
38cce518e0
commit
efd69b16ed
@ -1122,20 +1122,9 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
def audit_urls
|
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
|
return unless @online
|
||||||
|
|
||||||
|
urls = [url] + mirrors
|
||||||
urls.each do |url|
|
urls.each do |url|
|
||||||
next if !@strict && mirrors.include?(url)
|
next if !@strict && mirrors.include?(url)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user