aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDominyk Tiller2015-08-26 18:21:42 +0100
committerDominyk Tiller2015-08-26 23:56:10 +0100
commitc992749986a949e84b62dcc4070751652d355b31 (patch)
tree9d58fe7a97b885204f038bbfe28142c89ec19a74 /Library
parent94bb92b4c1c27ad32be784975b03a337cd61695d (diff)
downloadbrew-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.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