diff options
| author | Mike McQuaid | 2013-01-01 17:26:50 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-01-02 09:28:15 +0000 |
| commit | 1e6e443ba12bb0bdd0ba8d99c2bdf7130e83f5a9 (patch) | |
| tree | 6355870f607789040a3b06cd133917e6cad501e6 /Library/Homebrew/cmd/info.rb | |
| parent | 92a29b38186abcae610c442c5847b795aa8dc159 (diff) | |
| download | homebrew-1e6e443ba12bb0bdd0ba8d99c2bdf7130e83f5a9.tar.bz2 | |
Add caveats class and use in brew info.
Probably a better approach than reverted e721c7.
Fixes #16604.
Diffstat (limited to 'Library/Homebrew/cmd/info.rb')
| -rw-r--r-- | Library/Homebrew/cmd/info.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index a5da4e81d..ffbc93038 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -1,6 +1,7 @@ require 'formula' require 'tab' require 'keg' +require 'caveats' module Homebrew extend self def info @@ -119,10 +120,7 @@ module Homebrew extend self Homebrew.dump_options_for_formula f end - unless f.caveats.to_s.strip.empty? - ohai "Caveats" - puts f.caveats - end + Caveats.print f rescue FormulaUnavailableError # check for DIY installation |
