diff options
| author | Dominyk Tiller | 2016-08-30 04:47:26 +0100 |
|---|---|---|
| committer | Dominyk Tiller | 2016-09-01 17:29:03 +0100 |
| commit | 8a3a4b83fd28df2acf4dbd65eab53ec8dc2a59fa (patch) | |
| tree | 702784841826d7a03ee811b6f927c644354c8a15 /Library/Homebrew | |
| parent | 4422bd1f341e57038a8852ca9f8c46c31dbdbcad (diff) | |
| download | brew-8a3a4b83fd28df2acf4dbd65eab53ec8dc2a59fa.tar.bz2 | |
audit: banish http://http.debian.net for secure mirrors
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index b237ede0d..c4e0fb619 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -1253,6 +1253,17 @@ class ResourceAuditor end end + # Debian has an abundance of secure mirrors. Let's not pluck the insecure + # one out of the grab bag. + urls.each do |u| + next unless u =~ %r{^http://http\.debian\.net/debian/(.*)}i + problem <<-EOS.undent + Please use a secure mirror for Debian URLs. + We recommend: + https://mirrors.ocf.berkeley.edu/debian/#{$1} + EOS + end + # Check for Google Code download urls, https:// is preferred # Intentionally not extending this to SVN repositories due to certificate # issues. |
