aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorXu Cheng2015-02-07 09:21:20 +0800
committerMike McQuaid2015-02-07 20:43:03 +0000
commitf8791da2ec094f0ccaa5bdd432ab9ec45945f985 (patch)
treefd4237ef49363aeea2584506120ee287ce1952d1 /Library/Homebrew
parent357d0f279614c1c18f709f2dd4e310ad388d3915 (diff)
downloadbrew-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/Homebrew')
-rw-r--r--Library/Homebrew/formula.rb2
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