Merge pull request #10184 from Rylan12/disable-python-doctor-message
doctor: disable python symlink message
This commit is contained in:
commit
7e5237ca65
@ -707,20 +707,6 @@ module Homebrew
|
|||||||
message
|
message
|
||||||
end
|
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
|
def check_for_non_prefixed_coreutils
|
||||||
coreutils = Formula["coreutils"]
|
coreutils = Formula["coreutils"]
|
||||||
return unless coreutils.any_version_installed?
|
return unless coreutils.any_version_installed?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user