This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

proper version sort in `outdated` command

c.f. #16382.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
1 parent 15ddc2b commit ed7f06b7f0d008bca3f27c6f8a336e72ff7cf7f3 @mislav mislav committed with jacknagel Dec 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Library/Homebrew/cmd/outdated.rb
@@ -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

0 comments on commit ed7f06b

Please sign in to comment.