aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-01-17 19:09:41 +0000
committerMike McQuaid2017-01-17 19:09:41 +0000
commit4f0505f759d355d6a514485733c0ea3349711655 (patch)
tree31b595268907cee77c2522169a9899a77bd661ac /Library
parenta5019d281ef0757adcc0f4157e7f15495da01cdf (diff)
downloadbrew-4f0505f759d355d6a514485733c0ea3349711655.tar.bz2
audit: only warn on versioned conflicts_with.
Rather than all versioned formulae regardless. Oops.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 281839621..594555695 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -459,7 +459,7 @@ class FormulaAuditor
end
def audit_conflicts
- if formula.versioned_formula?
+ if formula.conflicts.any? && formula.versioned_formula?
problem <<-EOS
Versioned formulae should not use `conflicts_with`.
Use `keg_only :versioned_formula` instead.