diff options
| author | Dominyk Tiller | 2015-08-26 18:21:42 +0100 |
|---|---|---|
| committer | Dominyk Tiller | 2015-08-26 23:56:10 +0100 |
| commit | c992749986a949e84b62dcc4070751652d355b31 (patch) | |
| tree | 9d58fe7a97b885204f038bbfe28142c89ec19a74 /Library | |
| parent | 94bb92b4c1c27ad32be784975b03a337cd61695d (diff) | |
| download | brew-c992749986a949e84b62dcc4070751652d355b31.tar.bz2 | |
doctor: add system curl <10.7 check
Closes Homebrew/homebrew#43283.
Closes Homebrew/homebrew#43298.
Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 91d215e1a..c1b1b4929 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -653,13 +653,23 @@ class Checks 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 if %w[CURL_HOME HOME].any? { |key| ENV[key] && File.exist?("#{ENV[key]}/.curlrc") } then <<-EOS.undent You have a curlrc file If you have trouble downloading packages with Homebrew, then maybe this is the problem? If the following command doesn't work, then try removing your curlrc: - curl http://github.com + curl https://github.com EOS end end |
