From e0c53c56e4e7ec06636b967cb9900a3d2849fd52 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 2 Oct 2011 15:46:09 -0500 Subject: audit: improve SF 'use_mirror' detection Signed-off-by: Jack Nagel --- Library/Homebrew/cmd/audit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index cfa6879a0..fce3d869e 100755 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -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$/ -- cgit v1.2.3