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 Homebrew/homebrew#11300.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-03-29 21:22:29 -05:00
parent 7706e1210f
commit 49b0b3903f

View File

@ -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?