aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb4
1 files changed, 4 insertions, 0 deletions
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