aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb15
1 files changed, 14 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index eb98d8063..d8d1a8fbf 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -251,10 +251,23 @@ class FormulaInstaller
begin
f = Formulary.factory(c.name)
rescue TapFormulaUnavailableError
- # If the formula name is in full-qualified name. Let's silently
+ # If the formula name is a fully-qualified name let's silently
# ignore it as we don't care about things used in taps that aren't
# currently tapped.
false
+ rescue FormulaUnavailableError => e
+ # If the formula name doesn't exist any more then complain but don't
+ # stop installation from continuing.
+ opoo <<-EOS.undent
+ #{formula}: #{e.message}
+ 'conflicts_with \"#{c.name}\"' should be removed from #{formula.path.basename}.
+ EOS
+ if ARGV.homebrew_developer?
+ raise
+ else
+ $stderr.puts "Please report this to the #{formula.tap} tap!"
+ end
+ false
else
f.linked_keg.exist? && f.opt_prefix.exist?
end