info: use more string interpolation
This commit is contained in:
parent
b0d25d83fe
commit
33d4c95a28
@ -124,8 +124,8 @@ module Homebrew
|
|||||||
puts Formatter.url(f.homepage) if f.homepage
|
puts Formatter.url(f.homepage) if f.homepage
|
||||||
|
|
||||||
conflicts = f.conflicts.map do |c|
|
conflicts = f.conflicts.map do |c|
|
||||||
c.name +
|
reason = " (because #{c.reason})" if c.reason
|
||||||
(c.reason ? " (because #{c.reason})" : "")
|
"#{c.name}#{reason}"
|
||||||
end.sort!
|
end.sort!
|
||||||
msg="Conflicts with: "
|
msg="Conflicts with: "
|
||||||
puts msg+conflicts*(",\n"+" "*msg.length) unless conflicts.empty?
|
puts msg+conflicts*(",\n"+" "*msg.length) unless conflicts.empty?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user