diff options
| author | Xu Cheng | 2015-02-07 09:21:20 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-07 20:43:03 +0000 |
| commit | 2fb189ff40b3f7be4266fbc8acc33b820bf119a0 (patch) | |
| tree | 94bafc753d6043329704a65f8c8d43bd9d1b32f2 /Library/Homebrew | |
| parent | b5ab4744bbd88dc65c8e6fb0f54b90dc8f535611 (diff) | |
| download | homebrew-2fb189ff40b3f7be4266fbc8acc33b820bf119a0.tar.bz2 | |
formula: sort installed version in to_hash
https://github.com/Homebrew/homebrew-brewdler/pull/43#discussion_r24248760
Closes #36611.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew')
| -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 |
