formula: make runtime_dependencies logic clearer
This commit is contained in:
parent
43f2e9e7bb
commit
ef5cff5e71
@ -1507,9 +1507,7 @@ class Formula
|
|||||||
def runtime_dependencies
|
def runtime_dependencies
|
||||||
recursive_dependencies do |_dependent, dependency|
|
recursive_dependencies do |_dependent, dependency|
|
||||||
Dependency.prune if dependency.build?
|
Dependency.prune if dependency.build?
|
||||||
if dependency.optional? || dependency.recommended?
|
Dependency.prune if !dependency.required? && build.without?(dependency)
|
||||||
Dependency.prune unless build.with?(dependency)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user