aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
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/cmd
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/cmd')
-rw-r--r--Library/Homebrew/cmd/info.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb
index 655cbdeea..46857d1d7 100644
--- a/Library/Homebrew/cmd/info.rb
+++ b/Library/Homebrew/cmd/info.rb
@@ -103,6 +103,13 @@ module Homebrew extend self
print " *" if keg.linked?
puts
tab = Tab.for_keg keg
+
+ # Intentionally print no message if this is nil because it's unknown.
+ case tab.poured_from_bottle
+ when true then puts "Poured from bottle"
+ when false then puts "Built from source"
+ end
+
unless tab.used_options.empty?
puts " Installed with: #{tab.used_options*', '}"
end