Skip to content
Browse files

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>
  • Loading branch information...
1 parent ffb9aa5 commit c7d9a09a96d06e05aa77ff69882573e4e6dfebe7 @jacknagel jacknagel committed Mar 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Library/Homebrew/cmd/info.rb
View
2 Library/Homebrew/cmd/info.rb
@@ -66,7 +66,7 @@ def info_formula f
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?

0 comments on commit c7d9a09

Please sign in to comment.
Something went wrong with that request. Please try again.