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:
parent
7706e1210f
commit
49b0b3903f
@ -66,7 +66,7 @@ module Homebrew extend self
|
|||||||
kegs.each do |keg|
|
kegs.each do |keg|
|
||||||
next if keg.basename.to_s == '.DS_Store'
|
next if keg.basename.to_s == '.DS_Store'
|
||||||
print "#{keg} (#{keg.abv})"
|
print "#{keg} (#{keg.abv})"
|
||||||
print " *" if Keg.new(keg).linked? and kegs.length > 1
|
print " *" if Keg.new(keg).linked?
|
||||||
puts
|
puts
|
||||||
tab = Tab.for_keg keg
|
tab = Tab.for_keg keg
|
||||||
unless tab.used_options.empty?
|
unless tab.used_options.empty?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user