Skip to content
Snippets Groups Projects
Commit aa7864c5 authored by Mislav Marohnić's avatar Mislav Marohnić Committed by Jack Nagel
Browse files

proper version sort in `outdated` command


c.f. Homebrew/homebrew#16382.

Signed-off-by: default avatarJack Nagel <jacknagel@gmail.com>
parent 004069b2
No related branches found
No related tags found
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment