Introduce :provided_by_osx for keg_only?

This commit is contained in:
Max Howell 2009-10-12 20:48:00 +01:00
parent b70a5da5eb
commit 9802bb0e19

View File

@ -7,7 +7,9 @@ require 'brew.h'
show_summary_heading = false show_summary_heading = false
def text_for_keg_only_formula f 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}" 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."