mirror of
https://github.com/gosticks/brew.git
synced 2026-10-04 22:46:55 +00:00
formula: build dependencies are never missing.
If the formula is already installed and they've been removed: that's ok. Fixes #2625.
This commit is contained in:
@@ -1553,11 +1553,11 @@ class Formula
|
||||
def missing_dependencies(hide: nil)
|
||||
hide ||= []
|
||||
missing_dependencies = recursive_dependencies do |dependent, dep|
|
||||
if dep.optional? || dep.recommended?
|
||||
if dep.build?
|
||||
Dependency.prune
|
||||
elsif dep.optional? || dep.recommended?
|
||||
tab = Tab.for_formula(dependent)
|
||||
Dependency.prune unless tab.with?(dep)
|
||||
elsif dep.build?
|
||||
Dependency.prune
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user