aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-09-01 10:06:28 -0700
committerAdam Vandenberg2011-09-01 10:06:28 -0700
commit88538c2b4b633e46403a8e70edf32f8514aabfb4 (patch)
tree9a03856a40b9c2253a82fc88d059b44b0541b374 /Library
parent80335bba7498e484997a6ccf4bbfccef2bb251f9 (diff)
downloadbrew-88538c2b4b633e46403a8e70edf32f8514aabfb4.tar.bz2
Fix stripping of keg-only reasons during install
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 131366497..e44efa8dd 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -246,10 +246,13 @@ end
class Formula
- def keg_only_text; <<-EOS.undent
+ def keg_only_text
+ # Add indent into reason so undent won't truncate the beginnings of lines
+ reason = self.keg_only?.to_s.gsub(/[\n]/, "\n ")
+ return <<-EOS.undent
This formula is keg-only, so it was not symlinked into #{HOMEBREW_PREFIX}.
- #{self.keg_only?}
+ #{reason}
Generally there are no consequences of this for you.
If you build your own software and it requires this formula, you'll need