audit: don't warn about tarball in non-GitHub URL.

This commit is contained in:
Mike McQuaid 2014-03-25 16:14:03 +00:00
parent 0d898edc37
commit 7846ed4f76

View File

@ -267,7 +267,7 @@ class FormulaAuditor
end
# Use new-style archive downloads
urls.select { |u| u =~ %r[https://.*/(?:tar|zip)ball/] && u !~ %r[\.git$] }.each do |u|
urls.select { |u| u =~ %r[https://.*github.*/(?:tar|zip)ball/] && u !~ %r[\.git$] }.each do |u|
problem "Use /archive/ URLs for GitHub tarballs (url is #{u})."
end