aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-06-17 00:04:21 -0500
committerJack Nagel2014-06-17 00:06:10 -0500
commit9b4bb3d9e4b1ea9380595d9f673d86b529f6b297 (patch)
treec0bc135aaaecc502eb5e41d81202be2b23497c2c /Library
parentff047a88a5b2d8ff1446332ee9773da5e197332d (diff)
downloadbrew-9b4bb3d9e4b1ea9380595d9f673d86b529f6b297.tar.bz2
Fix retry condition when auto-tapping deps
Fixes Homebrew/homebrew#30212.
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