diff options
| author | Mike McQuaid | 2017-05-15 10:40:07 +0100 |
|---|---|---|
| committer | GitHub | 2017-05-15 10:40:07 +0100 |
| commit | 8e2198ff018548df6aa0854f22a111bacee081a7 (patch) | |
| tree | 181b44b43962935538a224cea3b9279f9f7aa2bb | |
| parent | 33d4c95a287060d93200773a52443a1662846165 (diff) | |
| download | brew-8e2198ff018548df6aa0854f22a111bacee081a7.tar.bz2 | |
info: tweak conflicts output code.
| -rw-r--r-- | Library/Homebrew/cmd/info.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index 613677761..ba920d005 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -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? |
