doctor: add system curl <10.7 check
Closes Homebrew/homebrew#43283. Closes Homebrew/homebrew#43298. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
94bb92b4c1
commit
c992749986
@ -653,13 +653,23 @@ class Checks
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def check_for_bad_curl
|
||||||
|
if MacOS.version <= "10.6" && !Formula["curl"].installed? then <<-EOS.undent
|
||||||
|
The system curl on 10.6 and below is often incapable of supporting
|
||||||
|
modern secure connections & will fail on fetching formulae.
|
||||||
|
We recommend you:
|
||||||
|
brew install curl
|
||||||
|
EOS
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def check_user_curlrc
|
def check_user_curlrc
|
||||||
if %w[CURL_HOME HOME].any? { |key| ENV[key] && File.exist?("#{ENV[key]}/.curlrc") } then <<-EOS.undent
|
if %w[CURL_HOME HOME].any? { |key| ENV[key] && File.exist?("#{ENV[key]}/.curlrc") } then <<-EOS.undent
|
||||||
You have a curlrc file
|
You have a curlrc file
|
||||||
If you have trouble downloading packages with Homebrew, then maybe this
|
If you have trouble downloading packages with Homebrew, then maybe this
|
||||||
is the problem? If the following command doesn't work, then try removing
|
is the problem? If the following command doesn't work, then try removing
|
||||||
your curlrc:
|
your curlrc:
|
||||||
curl http://github.com
|
curl https://github.com
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user