Merge pull request #12968 from issyl0/dont-check-arch-requirements-for-only-dependencies

formula_installer: Fix `--only-dependencies` formula arch handling
This commit is contained in:
Issy Long 2022-03-07 09:49:34 +00:00 committed by GitHub
commit ea0ddc3297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -579,7 +579,8 @@ class FormulaInstaller
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