From d83076c07ed8dac3d629d4532e5f4e8d98a9a793 Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Mon, 26 Dec 2011 11:55:05 -0800 Subject: [PATCH] Generalize formula_installer dependency resolution Use `Formula.factory dep.path` instead of `Formula.factory dep.name` so that non-standard dependencies specified as URLs or paths can be handled properly. --- Library/Homebrew/formula_installer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index eee2ae6357..e6d846dd12 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -35,7 +35,7 @@ class FormulaInstaller # Re-create the formula object so that args like `--HEAD` won't # affect properties like the installation prefix. Also need to # re-check installed status as the Formula may have changed. - dep = Formula.factory dep.name + dep = Formula.factory dep.path install_dependency dep unless dep.installed? end end