Skip to content
Snippets Groups Projects
Commit 804872fc authored by Jack Nagel's avatar Jack Nagel
Browse files

Use sort_by in missing deps doctor check

parent 5375f239
No related branches found
No related tags found
No related merge requests found
......@@ -891,16 +891,16 @@ end
def check_missing_deps
return unless HOMEBREW_CELLAR.exist?
s = Set.new
missing = Set.new
Homebrew.missing_deps(Formula.installed).each_value do |deps|
s.merge deps
missing.merge(deps)
end
if s.length > 0 then <<-EOS.undent
if missing.any? then <<-EOS.undent
Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:
brew install #{s.to_a.sort * " "}
brew install #{missing.sort_by(&:name) * " "}
Run `brew missing` for more details.
EOS
......
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