From 814b969963a0d8e19e493d2fffc3544393aa3448 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Sat, 20 Apr 2013 23:03:23 -0500 Subject: [PATCH] doctor: add default-names findutils check Fixes Homebrew/homebrew#19265. --- Library/Homebrew/cmd/doctor.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 1bab04a7d7..3f94b678dc 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -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