Skip to content
Snippets Groups Projects
Commit 78b01274 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #3345 from maxim-belkin/coffee-leaves

leaves: account for requirements
parents d5e32300 31341003
No related branches found
No related tags found
No related merge requests found
......@@ -13,16 +13,7 @@ module Homebrew
deps_of_installed = Set.new
installed.each do |f|
deps = []
f.deps.each do |dep|
if dep.optional? || dep.recommended?
deps << dep.to_formula.full_name if f.build.with?(dep)
else
deps << dep.to_formula.full_name
end
end
deps = f.runtime_dependencies.map { |d| d.to_formula.full_name }
deps_of_installed.merge(deps)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment