From 12501b4046339b6becd42e37730873babeaa9dc2 Mon Sep 17 00:00:00 2001 From: David Broder-Rodgers <broder93@gmail.com> Date: Mon, 30 Jan 2017 18:30:57 +0000 Subject: [PATCH] Prevent mirror curl for file:/// URL --- Library/Homebrew/dev-cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index a7c9de576b..180783f794 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -1491,7 +1491,7 @@ class ResourceAuditor return unless @online urls.each do |url| strategy = DownloadStrategyDetector.detect(url) - if strategy <= CurlDownloadStrategy + if strategy <= CurlDownloadStrategy && !url.start_with?("file") problem url status_code = FormulaAuditor.url_status_code url unless status_code.start_with? "2" -- GitLab