propert version sort in info command
Closes Homebrew/homebrew#16382. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
4b0e663c2c
commit
004069b29e
@ -95,10 +95,11 @@ module Homebrew extend self
|
||||
|
||||
if f.rack.directory?
|
||||
kegs = f.rack.children
|
||||
kegs.reject! {|keg| keg.basename.to_s == '.DS_Store' }
|
||||
kegs = kegs.map {|keg| Keg.new(keg) }.sort_by {|keg| keg.version }
|
||||
kegs.each do |keg|
|
||||
next if keg.basename.to_s == '.DS_Store'
|
||||
print "#{keg} (#{keg.abv})"
|
||||
print " *" if Keg.new(keg).linked?
|
||||
print " *" if keg.linked?
|
||||
puts
|
||||
tab = Tab.for_keg keg
|
||||
unless tab.used_options.empty?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user