diff options
| author | Xu Cheng | 2015-07-22 16:41:10 +0800 | 
|---|---|---|
| committer | Xu Cheng | 2015-07-22 16:41:10 +0800 | 
| commit | ea21f9bc4d2d0a21bcfe8e1f21842fa731b8f753 (patch) | |
| tree | 875fd184afd38369fde26ea98275c76bdb9ab1cf /Library/Homebrew/cmd/audit.rb | |
| parent | 2648684b3b37e751a00648535ea3c69a897ec434 (diff) | |
| download | brew-ea21f9bc4d2d0a21bcfe8e1f21842fa731b8f753.tar.bz2 | |
audit: more fix on no-compat mode
Diffstat (limited to 'Library/Homebrew/cmd/audit.rb')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index b79e90f54..1a09bee07 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -991,9 +991,11 @@ class ResourceAuditor      return unless using -    if using == :ssl3 || using == CurlSSL3DownloadStrategy +    if using == :ssl3 || \ +      (Object.const_defined?("CurlSSL3DownloadStrategy") && using == CurlSSL3DownloadStrategy)        problem "The SSL3 download strategy is deprecated, please choose a different URL" -    elsif using == CurlUnsafeDownloadStrategy || using == UnsafeSubversionDownloadStrategy +    elsif (Object.const_defined?("CurlUnsafeDownloadStrategy") && using == CurlUnsafeDownloadStrategy) || \ +      (Object.const_defined?("UnsafeSubversionDownloadStrategy") && using == UnsafeSubversionDownloadStrategy)        problem "#{using.name} is deprecated, please choose a different URL"      end  | 
