aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-10-12 20:48:00 +0100
committerMax Howell2009-10-12 22:41:16 +0100
commit1831eb28796301acfd0dc0c1c3516d379967e734 (patch)
treeabeed0e528cc8906f35ded086c8ee4224487e32f /Library
parentf484738ee1272832eded8b10f576f5bd79d89f8a (diff)
downloadhomebrew-1831eb28796301acfd0dc0c1c3516d379967e734.tar.bz2
Introduce :provided_by_osx for keg_only?
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/install.rb4
1 files changed, 3 insertions, 1 deletions
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."