aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/outdated.rb
diff options
context:
space:
mode:
authorAlyssa Ross2016-09-15 15:53:04 +0100
committerAlyssa Ross2016-09-18 19:58:12 +0100
commitd3788c58efbae7c841faeb89a3eea539862245f7 (patch)
treeb766ee9ae6f9a1e0ca634b1cc8204a156c8c7d4f /Library/Homebrew/cmd/outdated.rb
parentc874b4e4c2590cbb775583892f18ecdc96ca897c (diff)
downloadbrew-d3788c58efbae7c841faeb89a3eea539862245f7.tar.bz2
brew outdated: use full name in verbose
Diffstat (limited to 'Library/Homebrew/cmd/outdated.rb')
-rw-r--r--Library/Homebrew/cmd/outdated.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/outdated.rb b/Library/Homebrew/cmd/outdated.rb
index f9739cd7a..4eb55fc50 100644
--- a/Library/Homebrew/cmd/outdated.rb
+++ b/Library/Homebrew/cmd/outdated.rb
@@ -56,9 +56,11 @@ module Homebrew
end
outdated_versions = outdated_kegs.
- group_by(&:name).
- sort_by(&:first).
- map { |name, kegs| "#{name} (#{kegs.map(&:version) * ", "})" } * ", "
+ group_by { |keg| Formulary.from_keg(keg) }.
+ sort_by { |formula, kegs| formula.full_name }.
+ map do |formula, kegs|
+ "#{formula.full_name} (#{kegs.map(&:version) * ", "})"
+ end * ", "
puts "#{outdated_versions} < #{current_version}"
else