From c7d9a09a96d06e05aa77ff69882573e4e6dfebe7 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 29 Mar 2012 21:22:29 -0500 Subject: 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 --- Library/Homebrew/cmd/info.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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? -- cgit v1.2.3