aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2012-03-29 21:22:29 -0500
committerJack Nagel2012-03-29 21:30:13 -0500
commitc7d9a09a96d06e05aa77ff69882573e4e6dfebe7 (patch)
tree914ac7a6bf1c9a228ae9cb9f39d83ee699c48740
parentffb9aa54139427b7529e98c73eeb11847a30d35b (diff)
downloadhomebrew-c7d9a09a96d06e05aa77ff69882573e4e6dfebe7.tar.bz2
info: always indicate if a keg is linked
We mark the linked keg with an asterisk when multiple kegs exist, but not when there is only a single keg. Start marking even in this case, giving consistent behavior and a reliable indicate of the link status. Fixes #11300. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
-rw-r--r--Library/Homebrew/cmd/info.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb
index bb5f1f991..383ba4138 100644
--- a/Library/Homebrew/cmd/info.rb
+++ b/Library/Homebrew/cmd/info.rb
@@ -66,7 +66,7 @@ module Homebrew extend self
kegs.each do |keg|
next if keg.basename.to_s == '.DS_Store'
print "#{keg} (#{keg.abv})"
- print " *" if Keg.new(keg).linked? and kegs.length > 1
+ print " *" if Keg.new(keg).linked?
puts
tab = Tab.for_keg keg
unless tab.used_options.empty?