diff options
| author | Mike McQuaid | 2017-04-22 16:54:50 +0100 |
|---|---|---|
| committer | GitHub | 2017-04-22 16:54:50 +0100 |
| commit | 5c82e0d5527754e902f84572f6fd28c24a72fe88 (patch) | |
| tree | 1098c288b7469c26cb47dcfb148871d7bed93269 /Library/Homebrew/dev-cmd | |
| parent | 044bd974e435dabfebf5385cb5649f8ddb34de94 (diff) | |
| parent | 94ef7318ae9b6ae374c9015bd3ddcb163316a875 (diff) | |
| download | brew-5c82e0d5527754e902f84572f6fd28c24a72fe88.tar.bz2 | |
Merge pull request #2526 from MikeMcQuaid/audit-gnu-mirror-flip
audit: flip GNU mirror preference.
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index f3bfb4c0c..95d54caee 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -1428,8 +1428,8 @@ class ResourceAuditor def audit_urls # Check GNU urls; doesn't apply to mirrors - if url =~ %r{^(?:https?|ftp)://(?!alpha).+/gnu/} - problem "Please use \"https://ftpmirror.gnu.org\" instead of #{url}." + if url =~ %r{^(?:https?|ftp)://ftpmirror.gnu.org/(.*)} + problem "Please use \"https://ftp.gnu.org/gnu/#{$1}\" instead of #{url}." end if mirrors.include?(url) |
