diff options
| author | Usman Akeju | 2016-02-25 21:34:00 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-02-26 09:04:05 +0000 |
| commit | bbe4191c617ee4fe9322a46281a87cf5810e22c7 (patch) | |
| tree | d0ed8d3f63cd87fd45e1237a11c7731535a32ba5 /Library | |
| parent | b52af53e711d442f2b7097a449a6c077664eb7f3 (diff) | |
| download | brew-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.rb | 2 |
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 |
