This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

audit: check conflict names

  • Loading branch information...
1 parent 7ba793b commit 3cb0edd3c6f77f285c37fe4b16885f56e6ecfbe3 @adamv adamv committed with klausmeyer Jan 3, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 Library/Homebrew/cmd/audit.rb
@@ -155,6 +155,15 @@ def audit_deps
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 @@ def audit
audit_specs
audit_urls
audit_deps
+ audit_conflicts
audit_patches
audit_text
end

0 comments on commit 3cb0edd

Please sign in to comment.