diff options
| author | Xu Cheng | 2015-02-07 09:21:20 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-07 20:43:03 +0000 |
| commit | f8791da2ec094f0ccaa5bdd432ab9ec45945f985 (patch) | |
| tree | fd4237ef49363aeea2584506120ee287ce1952d1 /Library | |
| parent | 357d0f279614c1c18f709f2dd4e310ad388d3915 (diff) | |
| download | brew-f8791da2ec094f0ccaa5bdd432ab9ec45945f985.tar.bz2 | |
formula: sort installed version in to_hash
https://github.com/Homebrew/homebrew-brewdler/pull/43#discussion_r24248760
Closes Homebrew/homebrew#36611.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 0ba0d334d..082a8e80f 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -614,6 +614,8 @@ class Formula "poured_from_bottle" => tab.poured_from_bottle } end + + hsh["installed"].sort_by! { |i| Version.new(i["version"]) } end hsh |
