aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-12-07 14:10:13 +0000
committerGitHub2017-12-07 14:10:13 +0000
commit286d74eec2dad60562f81f9fc02043ad82466b5c (patch)
tree931535f3251ff85763c34ef4bf43211341a8fef2 /Library
parent9cabda83e42ee2681d2ac08f9ff33ddc5d4ee540 (diff)
parent0245b2cfea973c849f3bd7a8d4ab973dc466fe5f (diff)
downloadbrew-286d74eec2dad60562f81f9fc02043ad82466b5c.tar.bz2
Merge pull request #3536 from MikeMcQuaid/prune_default_formula_only_if_installed
formula_installer: fix default formula prune.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index b5c5e7fb5..77e0ab29b 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -449,7 +449,7 @@ class FormulaInstaller
if (req.optional? || req.recommended?) && build.without?(req)
Requirement.prune
- elsif req.build? && use_default_formula
+ elsif req.build? && use_default_formula && req_dependency.installed?
Requirement.prune
elsif install_requirement_formula?(req_dependency, req, install_bottle_for_dependent)
deps.unshift(req_dependency)