Fix keg-only on pre-Mountain Lion formulae.
This commit is contained in:
parent
7b66291cc6
commit
6400f41a77
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user