Use the keg_only_reason instance method in keg_only?

This commit is contained in:
Jack Nagel 2014-08-16 15:40:58 -05:00
parent 4140671329
commit c0ef3d1541

View File

@ -221,8 +221,7 @@ class Formula
# rarely, you don't want your library symlinked into the main prefix # rarely, you don't want your library symlinked into the main prefix
# see gettext.rb for an example # see gettext.rb for an example
def keg_only? def keg_only?
kor = self.class.keg_only_reason keg_only_reason && keg_only_reason.valid?
not kor.nil? and kor.valid?
end end
def keg_only_reason def keg_only_reason