From 1831eb28796301acfd0dc0c1c3516d379967e734 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 12 Oct 2009 20:48:00 +0100 Subject: Introduce :provided_by_osx for keg_only? --- Library/Homebrew/install.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index fc7cfc0ee..75a63ac32 100755 --- a/Library/Homebrew/install.rb +++ b/Library/Homebrew/install.rb @@ -7,7 +7,9 @@ require 'brew.h' show_summary_heading = false def text_for_keg_only_formula f - if f.keg_only?.kind_of? String + if f.keg_only? == :provided_by_osx + rationale = "This because the formula is already provided by OS X." + elsif f.keg_only?.kind_of? String rationale = "The formula provides the following rationale:\n\n#{f.keg_only?.chomp}" else rationale = "The formula didn't provide any rationale for this." -- cgit v1.2.3