aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorMike McQuaid2013-03-15 00:28:18 +0000
committerMike McQuaid2013-03-20 23:06:38 +0000
commitb578a47bb9fda8043d7bcff730dc5bf951df41c7 (patch)
tree6b2fdedca7178637717953dd1c331062578b8349 /Library/Homebrew/formula.rb
parent81f9aef2458685e9416f1d8c4d0c86f340d69cfa (diff)
downloadbrew-b578a47bb9fda8043d7bcff730dc5bf951df41c7.tar.bz2
brew-info: specify whether poured or built.
- Store in the tab if a bottle was poured for the build. - Add an additional line of output to `brew info` outputting whether the formula was built from source or poured from a bottle. Closes Homebrew/homebrew#18430. Closes Homebrew/homebrew#18475.
Diffstat (limited to 'Library/Homebrew/formula.rb')
-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 490b517a6..54da64fea 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -503,7 +503,8 @@ class Formula
hsh["installed"] << {
"version" => keg.basename.to_s,
"used_options" => tab.used_options.map(&:flag),
- "built_as_bottle" => tab.built_bottle
+ "built_as_bottle" => tab.built_bottle,
+ "poured_from_bottle" => tab.poured_from_bottle
}
end
end