diff options
| author | Jack Nagel | 2012-03-29 21:22:29 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-03-29 21:30:13 -0500 |
| commit | 49b0b3903f9ffd7e09e5e639c1ba80763f071f77 (patch) | |
| tree | 44b710c0da0d4f62e03469f3c97e174a849d6a55 /Library/Homebrew | |
| parent | 7706e1210f8a4c284d64f605f5032a20ffd89d9b (diff) | |
| download | brew-49b0b3903f9ffd7e09e5e639c1ba80763f071f77.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 Homebrew/homebrew#11300.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/info.rb | 2 |
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? |
