diff options
| author | Jack Nagel | 2011-10-02 15:46:09 -0500 |
|---|---|---|
| committer | Jack Nagel | 2011-10-02 15:46:09 -0500 |
| commit | e0c53c56e4e7ec06636b967cb9900a3d2849fd52 (patch) | |
| tree | 7deddcfe68e9b702dd49a378e9f74ef650fe16c4 /Library | |
| parent | 0aa9fe73f8005d65ef2277fb1f2818bd4d404421 (diff) | |
| download | brew-e0c53c56e4e7ec06636b967cb9900a3d2849fd52.tar.bz2 | |
audit: improve SF 'use_mirror' detection
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/cmd/audit.rb | 4 |
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$/ |
