diff options
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 1e6903be6..515239da7 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -192,8 +192,15 @@ class FormulaInstaller return if ARGV.force? conflicts = formula.conflicts.select do |c| - f = Formulary.factory(c.name) - f.linked_keg.exist? && f.opt_prefix.exist? + begin + f = Formulary.factory(c.name) + f.linked_keg.exist? && f.opt_prefix.exist? + rescue FormulaUnavailableError + raise unless c.name =~ HOMEBREW_TAP_FORMULA_REGEX + # If the formula name is in full-qualified name. Let's silently + # ignore it as we don't care about things used in taps that aren't + # currently tapped. + end end raise FormulaConflictError.new(formula, conflicts) unless conflicts.empty? |
