diff options
| author | Max Howell | 2009-09-30 17:18:40 +0100 |
|---|---|---|
| committer | Max Howell | 2009-09-30 17:24:05 +0100 |
| commit | b80dd75a73776d56164be4d250e6efeae965ca3f (patch) | |
| tree | 2360a95ea18675eeff83434fd20fdc651f369106 /Library | |
| parent | 287cc0dc0273c3bddf034f03d893eee0b8cc81a5 (diff) | |
| download | brew-b80dd75a73776d56164be4d250e6efeae965ca3f.tar.bz2 | |
Allow returning true from keg_only?
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/install.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index fb50e2271..82785ea99 100755 --- a/Library/Homebrew/install.rb +++ b/Library/Homebrew/install.rb @@ -7,11 +7,14 @@ require 'brew.h' show_summary_heading = false def text_for_keg_only_formula f + if 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." + end <<-EOS #{f.name} is keg-only. This means it is not symlinked into Homebrew's -prefix. The formula provides the following rationale: - -#{f.keg_only?.chomp} +prefix. #{rationale} Generally there are no consequences of this for you, however if you build your own software and it requires this formula, you may want to run this command to |
