aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index ea853be29..e96ac69e9 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -91,10 +91,15 @@ class FormulaInstaller
end
def verify_deps_exist
- f.recursive_dependencies.map(&:to_formula)
- rescue TapFormulaUnavailableError => e
- Homebrew.install_tap(e.user, e.repo)
- retry
+ begin
+ f.recursive_dependencies.map(&:to_formula)
+ rescue TapFormulaUnavailableError => e
+ if Homebrew.install_tap(e.user, e.repo)
+ retry
+ else
+ raise
+ end
+ end
rescue FormulaUnavailableError => e
e.dependent = f.name
raise