aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index bd7c672c3..7a2ee653c 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -33,9 +33,10 @@ class FormulaInstaller
else
ARGV.filter_for_dependencies do
# Re-create the formula object so that args like `--HEAD` won't
- # affect properties like the installation prefix.
+ # affect properties like the installation prefix. Also need to
+ # re-check installed status as the Formula may have changed.
dep = Formula.factory dep.name
- install_dependency dep
+ install_dependency dep unless dep.installed?
end
end
end