aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/install.rb9
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