diff options
| author | Jack Nagel | 2014-06-17 00:04:21 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-17 00:06:10 -0500 |
| commit | 42eb3ba0facf8ca2b6d2329943cabc85633df25b (patch) | |
| tree | 4c43c92b8c0cd30fc9c9f2fed0d561712e81f66f /Library | |
| parent | aea3d740c4cadd4ff1412fcfb454c1a119dd722d (diff) | |
| download | homebrew-42eb3ba0facf8ca2b6d2329943cabc85633df25b.tar.bz2 | |
Fix retry condition when auto-tapping deps
Fixes #30212.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 13 |
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 |
