From a0d53f7bc1c78a5425e1fc53bb82fa5f1a0061d8 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Thu, 3 Jan 2013 11:22:31 -0800 Subject: audit: check conflict names --- Library/Homebrew/cmd/audit.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3