From d5255b87eee44da74918e007a55631177b954767 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 28 Feb 2014 15:58:20 -0600 Subject: Automatically install taps for cross-tap dependencies Closes #27099. --- Library/Homebrew/formula_installer.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index ef18635fb..43d84d1eb 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -10,6 +10,7 @@ require 'caveats' require 'cleaner' require 'formula_cellar_checks' require 'install_renamed' +require 'cmd/tap' class FormulaInstaller include FormulaCellarChecks @@ -44,6 +45,9 @@ class FormulaInstaller def verify_deps_exist f.recursive_dependencies.map(&:to_formula) + rescue TapFormulaUnavailableError => e + Homebrew.install_tap(e.user, e.repo) + retry rescue FormulaUnavailableError => e e.dependent = f.name raise -- cgit v1.2.3