aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula_installer.rb
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/formula_installer.rb
parent2a4a3c3a9550e2f5170d92c37d0847374e877acf (diff)
downloadbrew-870f095c69df18d321a568b3d21cef09508ac4fd.tar.bz2
Restore keg-only caveats
Fixes Homebrew/homebrew#16989.
Diffstat (limited to 'Library/Homebrew/formula_installer.rb')
-rw-r--r--Library/Homebrew/formula_installer.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 221690576..db9ade9ca 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -154,7 +154,12 @@ class FormulaInstaller
check_infopages
end
- Caveats.print f
+ c = Caveats.new(f)
+
+ unless c.empty?
+ @show_summary_heading = true
+ ohai 'Caveats', c.caveats
+ end
end
def finish
@@ -175,7 +180,7 @@ class FormulaInstaller
install_plist
fix_install_names
- ohai "Summary - #{f.name}" if ARGV.verbose? or show_summary_heading
+ ohai "Summary" if ARGV.verbose? or show_summary_heading
print "🍺 " if MacOS.version >= :lion
print "#{f.prefix}: #{f.prefix.abv}"
print ", built in #{pretty_duration build_time}" if build_time