diff options
| author | Mike McQuaid | 2017-09-23 21:10:25 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-09-23 21:10:25 +0100 |
| commit | 56ab1ef5a860beb2f180bbf26bfc74a0d569dce9 (patch) | |
| tree | 528bcfad9e791057338d756b9264467f4c1b8504 | |
| parent | 046486900e63c2c86afeda54263a52d623e419d1 (diff) | |
| download | brew-56ab1ef5a860beb2f180bbf26bfc74a0d569dce9.tar.bz2 | |
audit: hack around El Capitan audit failure.
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index e2a288fdb..5d1871f54 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -214,7 +214,12 @@ class FormulaAuditor break if details[:status].to_s.start_with?("2") end - return "The URL #{url} is not reachable" unless details[:status] + unless details[:status] + # Hack around https://github.com/Homebrew/brew/issues/3199 + return if MacOS.version == :el_capitan + return "The URL #{url} is not reachable" + end + unless details[:status].start_with? "2" return "The URL #{url} is not reachable (HTTP status code #{details[:status]})" end |
