doctor: disable python symlink message

This commit is contained in:
Rylan Polster 2020-12-30 11:17:36 -05:00
parent 881cd6a5c4
commit e04f450684

View File

@ -707,20 +707,6 @@ module Homebrew
message
end
def check_for_bad_python_symlink
return unless which "python"
`python -V 2>&1` =~ /Python (\d+)\./
# This won't be the right warning if we matched nothing at all
return if Regexp.last_match(1).nil?
return if Regexp.last_match(1) == "2"
<<~EOS
python is symlinked to python#{Regexp.last_match(1)}
This will confuse build scripts and in general lead to subtle breakage.
EOS
end
def check_for_non_prefixed_coreutils
coreutils = Formula["coreutils"]
return unless coreutils.any_version_installed?