Skip to content

Commit

Permalink
Merge pull request #12968 from issyl0/dont-check-arch-requirements-fo…
Browse files Browse the repository at this point in the history
…r-only-dependencies

formula_installer: Fix `--only-dependencies` formula arch handling
  • Loading branch information
issyl0 committed Mar 7, 2022
2 parents e13d04c + 8b7a9a2 commit ea0ddc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/formula_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,8 @@ def expand_requirements
if req.prune_from_option?(build) ||
req.satisfied?(env: @env, cc: @cc, build_bottle: @build_bottle, bottle_arch: @bottle_arch) ||
((req.build? || req.test?) && !keep_build_test) ||
formula_deps_map[dependent.name]&.build?
formula_deps_map[dependent.name]&.build? ||
(only_deps? && f == dependent)
Requirement.prune
else
unsatisfied_reqs[dependent] << req
Expand Down

0 comments on commit ea0ddc3

Please sign in to comment.