Reformat keg-only message
This commit is contained in:
parent
1cd2c685a0
commit
c8781e720f
@ -3,21 +3,20 @@ require 'global'
|
|||||||
|
|
||||||
def text_for_keg_only_formula f
|
def text_for_keg_only_formula f
|
||||||
if f.keg_only? == :provided_by_osx
|
if f.keg_only? == :provided_by_osx
|
||||||
rationale = "Mac OS X already provides this program and installing another version in parallel can cause all kinds of trouble."
|
rationale = "Mac OS X already provides this program and installing another version in\nparallel can cause all kinds of trouble."
|
||||||
elsif f.keg_only?.kind_of? String
|
elsif f.keg_only?.kind_of? String
|
||||||
rationale = "The formula provides the following rationale:\n\n#{f.keg_only?.chomp}"
|
rationale = "The formula provides the following rationale:\n\n#{f.keg_only?.chomp}"
|
||||||
else
|
else
|
||||||
rationale = "The formula didn't provide any rationale for this."
|
rationale = "The formula didn't provide any rationale for this."
|
||||||
end
|
end
|
||||||
<<-EOS
|
<<-EOS
|
||||||
#{f.name} is keg-only. This means it is not symlinked into Homebrew's
|
This formula is keg-only, so it is not symlinked into Homebrew's prefix.
|
||||||
prefix. #{rationale}
|
#{rationale}
|
||||||
|
|
||||||
Generally there are no consequences of this for you, however if you build your
|
Generally there are no consequences of this for you, however if you build
|
||||||
own software and it requires this formula, you may want to run this command to
|
your own software and it requires this formula, you may want to run this
|
||||||
link it into the Homebrew prefix:
|
command to link it into the Homebrew prefix:
|
||||||
|
$ brew link #{f.name}
|
||||||
brew link #{f.name}
|
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user