audit: stop demanding a HTTP HEAD mirror for curl

Not sure if this is how you want to handle it but having a HEAD mirror
for `curl` is just silliness.

Ref: e36b95849a
This commit is contained in:
Dominyk Tiller 2017-09-05 03:35:44 +01:00
parent e777010756
commit 9562cceef1
No known key found for this signature in database
GPG Key ID: FE19AEFCF658C6F6

View File

@ -1237,7 +1237,7 @@ class ResourceAuditor
def audit_urls
urls = [url] + mirrors
if name == "curl" && !urls.find { |u| u.start_with?("http://") }
if name == "curl" && !urls.find { |u| u.start_with?("http://") } && url != Formula["curl"].head.url
problem "should always include at least one HTTP url"
end