Restore Formula#declared_runtime_dependencies
This got lost in a merge.
This commit is contained in:
parent
6bbc56c3a9
commit
264acb22f4
@ -1498,6 +1498,13 @@ class Formula
|
||||
declared_runtime_dependencies | undeclared_runtime_dependencies
|
||||
end
|
||||
|
||||
def declared_runtime_dependencies
|
||||
recursive_dependencies do |_, dependency|
|
||||
Dependency.prune if dependency.build?
|
||||
Dependency.prune if !dependency.required? && build.without?(dependency)
|
||||
end
|
||||
end
|
||||
|
||||
def undeclared_runtime_dependencies
|
||||
if optlinked?
|
||||
keg = Keg.new(opt_prefix)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user