aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb12
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