From 475cade1a35c7a10b4c7e50a3a8a08bdea39d98b Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Sat, 4 Mar 2017 10:06:47 -0500 Subject: [PATCH] audit: do not warn about reachability of `brew mirror`ed URL A `brew mirror`ed URL is usually not yet reachable at the time of pull request. --- Library/Homebrew/dev-cmd/audit.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 90dd03c1c5..bc515686da 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -1566,6 +1566,9 @@ class ResourceAuditor strategy = DownloadStrategyDetector.detect(url, using) if strategy <= CurlDownloadStrategy && !url.start_with?("file") + # A `brew mirror`'ed URL is usually not yet reachable at the time of + # pull request. + next if url =~ %r{^https://dl.bintray.com/homebrew/mirror/} if http_content_problem = FormulaAuditor.check_http_content(url) problem http_content_problem end