audit: improve SF 'use_mirror' detection

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2011-10-02 15:46:09 -05:00
parent 0aa9fe73f8
commit e0c53c56e4

View File

@ -187,8 +187,8 @@ def audit_formula_urls f
# Is it a sourceforge http(s) URL?
next unless p =~ %r[^https?://.*\bsourceforge\.]
if p =~ /\?use_mirror=/
problems << " * Update this url (don't use ?use_mirror)."
if p =~ /(\?|&)use_mirror=/
problems << " * Update this url (don't use #{$1}use_mirror)."
end
if p =~ /\/download$/