aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2013-01-12 13:08:29 -0600
committerJack Nagel2013-01-14 14:57:42 -0600
commit870f095c69df18d321a568b3d21cef09508ac4fd (patch)
treeb189f4249894cd34e14021807fd6150301078763 /Library/Homebrew/cmd
parent2a4a3c3a9550e2f5170d92c37d0847374e877acf (diff)
downloadbrew-870f095c69df18d321a568b3d21cef09508ac4fd.tar.bz2
Restore keg-only caveats
Fixes Homebrew/homebrew#16989.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/info.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb
index ffbc93038..7c512fa23 100644
--- a/Library/Homebrew/cmd/info.rb
+++ b/Library/Homebrew/cmd/info.rb
@@ -120,7 +120,8 @@ module Homebrew extend self
Homebrew.dump_options_for_formula f
end
- Caveats.print f
+ c = Caveats.new(f)
+ ohai 'Caveats', c.caveats unless c.empty?
rescue FormulaUnavailableError
# check for DIY installation