diff options
| author | Max Howell | 2011-08-26 13:27:55 +0100 |
|---|---|---|
| committer | Max Howell | 2011-08-26 13:27:55 +0100 |
| commit | 4ba0e9ebaebecf7bff389d0d49e7d59b31eef237 (patch) | |
| tree | 8623e992106c0936a9abcce82723eccd800c5fcb /Library/Homebrew/utils.rb | |
| parent | 7c5073fff2534c3de09057fc469ccd9ceb7e6689 (diff) | |
| download | brew-4ba0e9ebaebecf7bff389d0d49e7d59b31eef237.tar.bz2 | |
Use curl with --insecure when on OS X < 10.6
The SSL certificates on this old version of OS X are outdated and who knows if Apple will fix them.
Fixes Homebrew/homebrew#6103.
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 3160ffe14..81f7d6192 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -104,6 +104,9 @@ def quiet_system cmd, *args end def curl *args + # See https://github.com/mxcl/homebrew/issues/6103 + args << "--insecure" if MacOS.version < 10.6 + safe_system '/usr/bin/curl', HOMEBREW_CURL_ARGS, HOMEBREW_USER_AGENT, *args unless args.empty? end @@ -235,6 +238,9 @@ def nostdout end module MacOS extend self + def version + MACOS_VERSION + end def default_cc Pathname.new("/usr/bin/cc").realpath.basename.to_s |
