Skip to content
Snippets Groups Projects
Commit 03cf38c4 authored by Tomasz Pajor's avatar Tomasz Pajor Committed by Mike McQuaid
Browse files

formula_installer: fix reqs default formulae.


(Commit message written by Mike McQuaid)

With the change in a0a93f1b3b7b2be9b8a319be91086ffe220f8e32
unfortunately requirements with default formulae no longer could be
resolved when the default formulae were not installed. This commit
fixes this problem.

Closes Homebrew/homebrew#31476.
Closes Homebrew/homebrew#31444.
Closes Homebrew/homebrew#30901.
Closes Homebrew/homebrew#31471.

Signed-off-by: default avatarMike McQuaid <mike@mikemcquaid.com>
parent 47fedf29
No related branches found
No related tags found
No related merge requests found
......@@ -262,12 +262,14 @@ class FormulaInstaller
Requirement.prune
elsif req.build? && dependent != f && install_bottle_for_dep?(dependent, build)
Requirement.prune
elsif req.satisfied? && !(pour_bottle? || build_bottle?)
Requirement.prune
elsif install_requirement_default_formula?(req)
dep = req.to_dependency
deps.unshift(dep)
formulae.unshift(dep.to_formula)
Requirement.prune
elsif req.satisfied?
elsif deps.include?(req.to_dependency)
Requirement.prune
else
unsatisfied_reqs[dependent] << req
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment