diff options
| author | Max Howell | 2011-08-26 13:27:55 +0100 |
|---|---|---|
| committer | Max Howell | 2011-08-26 13:27:55 +0100 |
| commit | 48552bb42a69ece4eb2a6d9acf81a0b47adb19c9 (patch) | |
| tree | 32b784d18fef31b4d8b21f5d36fb5f8df3c3c1d0 | |
| parent | 5e5bbd8f4ba548a47450baeb7fe7e61e3f84954d (diff) | |
| download | homebrew-48552bb42a69ece4eb2a6d9acf81a0b47adb19c9.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 #6103.
| -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 |
