Skip to content
Snippets Groups Projects
Commit e7a9f6eb authored by Stephen Nelson's avatar Stephen Nelson Committed by Max Howell
Browse files

Homebrew should not ignore curlrc


Added doctor check for .curlrc rather than silently ignoring it (#13836).

Closes Homebrew/homebrew#15419.

Signed-off-by: default avatarMax Howell <mxcl@me.com>

Removed test in doctor where it actually curl'd a file. It's enough to warn if the curlrc exists. I understand people want to remove the warnings, but the point in the doctor is to help diagnose and not to be some ramification of your UNIX system.
parent a967f5c8
No related branches found
No related tags found
No related merge requests found
...@@ -485,6 +485,17 @@ def check_user_path_3 ...@@ -485,6 +485,17 @@ def check_user_path_3
end end
end end
def check_user_curlrc
if %w[CURL_HOME HOME].one?{|key| ENV[key] and File.exists? "#{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
EOS
end
end
def check_which_pkg_config def check_which_pkg_config
binary = which 'pkg-config' binary = which 'pkg-config'
return if binary.nil? return if binary.nil?
......
...@@ -74,7 +74,7 @@ end ...@@ -74,7 +74,7 @@ end
HOMEBREW_USER_AGENT = "Homebrew #{HOMEBREW_VERSION} (Ruby #{RUBY_VERSION}-#{RUBY_PATCHLEVEL}; #{OS_VERSION})" HOMEBREW_USER_AGENT = "Homebrew #{HOMEBREW_VERSION} (Ruby #{RUBY_VERSION}-#{RUBY_PATCHLEVEL}; #{OS_VERSION})"
HOMEBREW_CURL_ARGS = '-qf#LA' HOMEBREW_CURL_ARGS = '-f#LA'
module Homebrew extend self module Homebrew extend self
include FileUtils include FileUtils
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment