aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-01-03 11:22:31 -0800
committerAdam Vandenberg2013-01-03 11:22:31 -0800
commita0d53f7bc1c78a5425e1fc53bb82fa5f1a0061d8 (patch)
tree3c4916037ae59a91f0f3e470b5e861b18f83fae9 /Library
parenta5e969dfb53d54e24ae6d291c5474475324cff31 (diff)
downloadbrew-a0d53f7bc1c78a5425e1fc53bb82fa5f1a0061d8.tar.bz2
audit: check conflict names
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index a04e91040..c0762e0b6 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -155,6 +155,15 @@ class FormulaAuditor
end
end
+ def audit_conflicts
+ f.conflicts.each do |req|
+ begin
+ conflict_f = Formula.factory req.formula
+ rescue
+ problem "Can't find conflicting formula \"#{req.formula}\"."
+ end
+ end
+ end
def audit_urls
unless f.homepage =~ %r[^https?://]
@@ -407,6 +416,7 @@ class FormulaAuditor
audit_specs
audit_urls
audit_deps
+ audit_conflicts
audit_patches
audit_text
end