aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2011-10-02 15:46:09 -0500
committerJack Nagel2011-10-02 15:46:09 -0500
commite0c53c56e4e7ec06636b967cb9900a3d2849fd52 (patch)
tree7deddcfe68e9b702dd49a378e9f74ef650fe16c4 /Library
parent0aa9fe73f8005d65ef2277fb1f2818bd4d404421 (diff)
downloadbrew-e0c53c56e4e7ec06636b967cb9900a3d2849fd52.tar.bz2
audit: improve SF 'use_mirror' detection
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb4
1 files changed, 2 insertions, 2 deletions
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$/