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