diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index ca837539f592e3f7ca3ab95109d89befbb1f9086..9be391cfda8186eadbb3ce7e09d700d9c1e178cb 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -485,6 +485,17 @@ def check_user_path_3 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 binary = which 'pkg-config' return if binary.nil? diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index 81065f8bafb86e3abe6da8113b6721bee7a9dca7..d7071eafbcb9ce154c6c38fd7fb3aedf1c26b246 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -74,7 +74,7 @@ end 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 include FileUtils