audit: only warn on versioned conflicts_with.

Rather than all versioned formulae regardless. Oops.
This commit is contained in:
Mike McQuaid 2017-01-17 19:09:41 +00:00
parent a5019d281e
commit 4f0505f759

View File

@ -459,7 +459,7 @@ class FormulaAuditor
end end
def audit_conflicts def audit_conflicts
if formula.versioned_formula? if formula.conflicts.any? && formula.versioned_formula?
problem <<-EOS problem <<-EOS
Versioned formulae should not use `conflicts_with`. Versioned formulae should not use `conflicts_with`.
Use `keg_only :versioned_formula` instead. Use `keg_only :versioned_formula` instead.