From 14d14fa69a106cc5b0a87bf3eaa3c6855cce5e84 Mon Sep 17 00:00:00 2001 From: George Kulakowski Date: Sun, 20 Feb 2011 12:20:07 -0500 Subject: [PATCH] Fix UnsatisfiedExternalDependencyError The refactor branch doesn't catch the UEDE and print the error message containing information about which dependency and how to install it. This adds back that logic. Signed-off-by: Adam Vandenberg --- Library/Homebrew/formula_installer.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 497f2a2ef4..1e5d402ecc 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -19,7 +19,12 @@ class FormulaInstaller @f.recursive_deps.each do |dep| FormulaInstaller.install_formula dep unless dep.installed? end - FormulaInstaller.check_external_deps @f + begin + FormulaInstaller.check_external_deps @f + rescue UnsatisfiedExternalDependencyError => e + onoe e.message + exit! 1 + end end FormulaInstaller.install_formula @f end