aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDavid Broder-Rodgers2017-01-30 18:30:57 +0000
committerDavid Broder-Rodgers2017-02-20 19:24:35 +0000
commit12501b4046339b6becd42e37730873babeaa9dc2 (patch)
treea24ca25288773da1f5299c19103c860bcb242972 /Library
parenta699d284d038907f884bb48f928f2e75ebadfc11 (diff)
downloadbrew-12501b4046339b6becd42e37730873babeaa9dc2.tar.bz2
Prevent mirror curl for file:/// URL
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index a7c9de576..180783f79 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"