info: tweak conflicts output code.

This commit is contained in:
Mike McQuaid 2017-05-15 10:40:07 +01:00 committed by GitHub
parent 33d4c95a28
commit 8e2198ff01

View File

@ -127,8 +127,12 @@ module Homebrew
reason = " (because #{c.reason})" if c.reason
"#{c.name}#{reason}"
end.sort!
msg="Conflicts with: "
puts msg+conflicts*(",\n"+" "*msg.length) unless conflicts.empty?
unless conflicts.empty?
puts <<-EOS.undent
Conflicts with:
#{conflicts.join(" \n")}
EOS
end
kegs = f.installed_kegs.sort_by(&:version)
if kegs.empty?