aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-02-28 15:58:20 -0600
committerJack Nagel2014-02-28 16:09:36 -0600
commitb168361ed0d79b4b7f5065a0d78cd150c13660e3 (patch)
treeb7f933c0f7c6b00a7ad8f2e9fb3cbc92c12804bb /Library
parent3872f78d666ab6ed765773907cdbd84cdb5e28ad (diff)
downloadbrew-b168361ed0d79b4b7f5065a0d78cd150c13660e3.tar.bz2
Automatically install taps for cross-tap dependencies
Closes Homebrew/homebrew#27099.
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