diff options
| author | Mike McQuaid | 2013-01-01 17:26:50 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-01-02 09:28:15 +0000 |
| commit | 755a2fbe52cb1938db1093f98d2b83f3f1701828 (patch) | |
| tree | f59245dc9ddf7dd50ce67671919ad06754d9aa88 /Library/Homebrew/cmd | |
| parent | da0c0ae97ac3206bad9cc2819c46b13d08d4dfd7 (diff) | |
| download | brew-755a2fbe52cb1938db1093f98d2b83f3f1701828.tar.bz2 | |
Add caveats class and use in brew info.
Probably a better approach than reverted e721c7.
Fixes Homebrew/homebrew#16604.
Diffstat (limited to 'Library/Homebrew/cmd')
| -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 |
