Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
audit: check conflict names
Browse files Browse the repository at this point in the history
  • Loading branch information
adamv authored and klausmeyer committed Jan 10, 2013
1 parent 7ba793b commit 3cb0edd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Library/Homebrew/cmd/audit.rb
Expand Up @@ -155,6 +155,15 @@ def audit_deps
end end
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 def audit_urls
unless f.homepage =~ %r[^https?://] unless f.homepage =~ %r[^https?://]
Expand Down Expand Up @@ -407,6 +416,7 @@ def audit
audit_specs audit_specs
audit_urls audit_urls
audit_deps audit_deps
audit_conflicts
audit_patches audit_patches
audit_text audit_text
end end
Expand Down

0 comments on commit 3cb0edd

Please sign in to comment.