doctor: add default-names findutils check

Fixes Homebrew/homebrew#19265.
This commit is contained in:
Misty De Meo 2013-04-20 23:03:23 -05:00
parent b7066b6e74
commit 814b969963

View File

@ -959,6 +959,14 @@ def check_for_non_prefixed_coreutils
end
end
def check_for_non_prefixed_findutils
default_names = Tab.for_formula('findutils').used_options.include? 'default-names'
if default_names then <<-EOS.undent
Putting non-prefixed findutils in your path can cause python builds to fail.
EOS
end
end
def check_for_pydistutils_cfg_in_home
if File.exist? ENV['HOME']+'/.pydistutils.cfg' then <<-EOS.undent
A .pydistutils.cfg file was found in $HOME, which may cause Python