aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorZhiming Wang2017-03-04 10:06:47 -0500
committerZhiming Wang2017-03-04 10:12:45 -0500
commit475cade1a35c7a10b4c7e50a3a8a08bdea39d98b (patch)
tree0d570cc1555a373ca96729271a93728e7c60f170 /Library
parent56ee2460f154bd9832109b89f87242accec71e14 (diff)
downloadbrew-475cade1a35c7a10b4c7e50a3a8a08bdea39d98b.tar.bz2
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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 90dd03c1c..bc515686d 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