mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
proper version sort in outdated
command
c.f. Homebrew/homebrew#16382. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
004069b29e
commit
aa7864c5ca
@ -5,7 +5,7 @@ module Homebrew extend self
|
||||
def outdated
|
||||
outdated_brews do |f|
|
||||
if $stdout.tty? and not ARGV.flag? '--quiet'
|
||||
versions = f.rack.subdirs.map { |d| Keg.new(d).version }
|
||||
versions = f.rack.subdirs.map { |d| Keg.new(d).version }.sort
|
||||
puts "#{f.name} (#{versions*', '} < #{f.version})"
|
||||
else
|
||||
puts f.name
|
||||
|
Loading…
x
Reference in New Issue
Block a user