diff options
| author | Dominyk Tiller | 2016-09-01 18:39:49 +0100 |
|---|---|---|
| committer | GitHub | 2016-09-01 18:39:49 +0100 |
| commit | 706c007de6f00f465c140f6d6848d116e8116e43 (patch) | |
| tree | 702784841826d7a03ee811b6f927c644354c8a15 /Library | |
| parent | 8bb3dda24317350d59c94f805665b8d5dfa3553f (diff) | |
| parent | 8a3a4b83fd28df2acf4dbd65eab53ec8dc2a59fa (diff) | |
| download | brew-706c007de6f00f465c140f6d6848d116e8116e43.tar.bz2 | |
Merge pull request #834 from DomT4/robot-dom
audit: various tweaks
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 3c26eeb97..c4e0fb619 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -1192,6 +1192,7 @@ class ResourceAuditor %r{^http://tools\.ietf\.org/}, %r{^http://launchpad\.net/}, %r{^http://bitbucket\.org/}, + %r{^http://anonscm\.debian\.org/}, %r{^http://cpan\.metacpan\.org/}, %r{^http://hackage\.haskell\.org/}, %r{^http://(?:[^/]*\.)?archive\.org}, @@ -1202,6 +1203,8 @@ class ResourceAuditor problem "#{p} should be `https://cpan.metacpan.org/#{$1}`" when %r{^(http|ftp)://ftp\.gnome\.org/pub/gnome/(.*)}i problem "#{p} should be `https://download.gnome.org/#{$2}`" + when %r{^git://anonscm\.debian\.org/users/(.*)}i + problem "#{p} should be `https://anonscm.debian.org/git/users/#{$1}`" end end @@ -1250,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. |
