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.
This commit is contained in:
parent
7c5073fff2
commit
4ba0e9ebae
@ -104,6 +104,9 @@ def quiet_system cmd, *args
|
|||||||
end
|
end
|
||||||
|
|
||||||
def curl *args
|
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?
|
safe_system '/usr/bin/curl', HOMEBREW_CURL_ARGS, HOMEBREW_USER_AGENT, *args unless args.empty?
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -235,6 +238,9 @@ def nostdout
|
|||||||
end
|
end
|
||||||
|
|
||||||
module MacOS extend self
|
module MacOS extend self
|
||||||
|
def version
|
||||||
|
MACOS_VERSION
|
||||||
|
end
|
||||||
|
|
||||||
def default_cc
|
def default_cc
|
||||||
Pathname.new("/usr/bin/cc").realpath.basename.to_s
|
Pathname.new("/usr/bin/cc").realpath.basename.to_s
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user