From 4ba0e9ebaebecf7bff389d0d49e7d59b31eef237 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 26 Aug 2011 13:27:55 +0100 Subject: 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.--- Library/Homebrew/utils.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3