info: tweak conflicts output code.
This commit is contained in:
parent
33d4c95a28
commit
8e2198ff01
@ -127,8 +127,12 @@ module Homebrew
|
|||||||
reason = " (because #{c.reason})" if c.reason
|
reason = " (because #{c.reason})" if c.reason
|
||||||
"#{c.name}#{reason}"
|
"#{c.name}#{reason}"
|
||||||
end.sort!
|
end.sort!
|
||||||
msg="Conflicts with: "
|
unless conflicts.empty?
|
||||||
puts msg+conflicts*(",\n"+" "*msg.length) unless conflicts.empty?
|
puts <<-EOS.undent
|
||||||
|
Conflicts with:
|
||||||
|
#{conflicts.join(" \n")}
|
||||||
|
EOS
|
||||||
|
end
|
||||||
|
|
||||||
kegs = f.installed_kegs.sort_by(&:version)
|
kegs = f.installed_kegs.sort_by(&:version)
|
||||||
if kegs.empty?
|
if kegs.empty?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user