Fix keg-only on pre-Mountain Lion formulae.

This commit is contained in:
Mike McQuaid 2012-08-23 09:49:08 -07:00
parent 7b66291cc6
commit 6400f41a77

View File

@ -133,7 +133,7 @@ class KegOnlyReason
@reason = reason
@explanation = explanation
@valid = case @reason
when :when_xquartz_installed then MacOS::XQuartz.installed?
when :provided_pre_mountain_lion then MacOS.version < :mountain_lion
else true
end
end
@ -150,8 +150,8 @@ class KegOnlyReason
#{@explanation}
EOS
when :when_xquartz_installed then <<-EOS.undent
XQuartz provides this software.
when :provided_pre_mountain_lion then <<-EOS.undent
Mac OS X already provides this software in versions before Mountain Lion.
#{@explanation}
EOS