formula_installer: fix test dependencies.
Only prune test dependencies from the tree when they aren't also build dependencies (and vice-versa with build dependencies) and the include test argument hasn't been passed.
This commit is contained in:
parent
e254e804ee
commit
2fc643421f
@ -488,9 +488,9 @@ class FormulaInstaller
|
|||||||
|
|
||||||
if dep.prune_from_option?(build)
|
if dep.prune_from_option?(build)
|
||||||
Dependency.prune
|
Dependency.prune
|
||||||
elsif include_test? && dep.test? && !dep.installed?
|
elsif dep.test? && !dep.build? && !include_test?
|
||||||
Dependency.keep_but_prune_recursive_deps
|
Dependency.prune
|
||||||
elsif dep.build? && install_bottle_for?(dependent, build)
|
elsif dep.build? && !dep.test? && install_bottle_for?(dependent, build)
|
||||||
Dependency.prune
|
Dependency.prune
|
||||||
elsif dep.prune_if_build_and_not_dependent?(dependent)
|
elsif dep.prune_if_build_and_not_dependent?(dependent)
|
||||||
Dependency.prune
|
Dependency.prune
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user