diff options
| author | Mike McQuaid | 2013-03-15 00:28:18 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-03-20 23:06:38 +0000 |
| commit | 5010dca995a13e571e0504b45f533d096825ebe7 (patch) | |
| tree | 98ec838c22116a379d035b5d5e17f6e7183b1d6b /Library/Homebrew/cmd | |
| parent | 3ab49d82f91642329aca27d230ee2b839533609c (diff) | |
| download | homebrew-5010dca995a13e571e0504b45f533d096825ebe7.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 #18430.
Closes #18475.
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/info.rb | 7 |
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 |
