aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorUsman Akeju2016-02-25 21:34:00 +0100
committerMike McQuaid2016-02-26 09:04:05 +0000
commitbbe4191c617ee4fe9322a46281a87cf5810e22c7 (patch)
treed0ed8d3f63cd87fd45e1237a11c7731535a32ba5 /Library
parentb52af53e711d442f2b7097a449a6c077664eb7f3 (diff)
downloadbrew-bbe4191c617ee4fe9322a46281a87cf5810e22c7.tar.bz2
formula: sort outdated versions naturally.
Because the versions are read from directory listings, we get alphabetical sorts of version numbers in `brew outdated` output: some-keg (10.1.10, 10.1.11, 10.1.9 < 10.1.12) This is nicer: some-keg (10.1.9, 10.1.10, 10.1.11 < 10.1.12) Closes Homebrew/homebrew#49534. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 7ba5d5044..c3d319d8f 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -974,7 +974,7 @@ class Formula
end
if older_or_same_tap_versions.all? { |v| pkg_version > v }
- all_versions
+ all_versions.sort!
else
[]
end