aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-28 20:41:02 -0500
committerJack Nagel2014-03-28 20:41:02 -0500
commit0f69ddf0b841bbdd9199920a0f1e61761c87e23c (patch)
treedc0b8e931a62cbd84c67e352f10a0a79c1e41e69 /Library
parent7d5922c45a56b9d57c4d032de54351e7fa493bcb (diff)
downloadhomebrew-0f69ddf0b841bbdd9199920a0f1e61761c87e23c.tar.bz2
Add revision to `brew info --json`
Closes #27820.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 006ccb3e8..50a6d1530 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -491,6 +491,7 @@ class Formula
"devel" => (devel.version.to_s if devel),
"head" => (head.version.to_s if head)
},
+ "revision" => revision,
"installed" => [],
"linked_keg" => (linked_keg.realpath.basename.to_s if linked_keg.exist?),
"keg_only" => keg_only?,
@@ -512,7 +513,7 @@ class Formula
tab = Tab.for_keg keg
hsh["installed"] << {
- "version" => keg.basename.to_s,
+ "version" => keg.version.to_s,
"used_options" => tab.used_options.map(&:flag),
"built_as_bottle" => tab.built_bottle,
"poured_from_bottle" => tab.poured_from_bottle