aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/install.rb
diff options
context:
space:
mode:
authorMax Howell2009-10-12 20:48:00 +0100
committerMax Howell2009-10-12 22:41:16 +0100
commit9802bb0e195e7250c8ce6854e2b4e24a58c79819 (patch)
tree15f96883f97b9fc349deb4f2fa3fdf3f86bd0637 /Library/Homebrew/install.rb
parentb70a5da5eb9e9f498a8f4c4c6ea0033a5ed96cb6 (diff)
downloadbrew-9802bb0e195e7250c8ce6854e2b4e24a58c79819.tar.bz2
Introduce :provided_by_osx for keg_only?
Diffstat (limited to 'Library/Homebrew/install.rb')
-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."