diff options
| author | Mike McQuaid | 2017-09-23 21:25:05 +0100 |
|---|---|---|
| committer | GitHub | 2017-09-23 21:25:05 +0100 |
| commit | 182ed794bde1c469e6920615f517dbb8420686c4 (patch) | |
| tree | 50a33cd4144a61ca0779c32089c1edfc5140a9c7 | |
| parent | 6b3bb666e880d7140e1199ecedda852f9c68ab79 (diff) | |
| parent | 56ab1ef5a860beb2f180bbf26bfc74a0d569dce9 (diff) | |
| download | brew-182ed794bde1c469e6920615f517dbb8420686c4.tar.bz2 | |
Merge pull request #3200 from MikeMcQuaid/audit-el-capitan-vendor-ruby
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 |
