From 0d4da4234a1ee776114408f118cd1d683360a2cf Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 10 Aug 2015 22:40:08 +0200 Subject: audit: enforce https on [*.]archive.org Also: * one minor regexp tweak Closes Homebrew/homebrew#42761. Signed-off-by: Mike McQuaid --- Library/Homebrew/cmd/audit.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 00a7e2816..babf58f62 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -439,7 +439,8 @@ class FormulaAuditor %r{^http://[^/.]+\.tools\.ietf\.org}, %r{^http://www\.gnu\.org/}, %r{^http://code\.google\.com/}, - %r{^http://bitbucket\.org/} + %r{^http://bitbucket\.org/}, + %r{^http://(?:[^/]*\.)?archive\.org} problem "Please use https:// for #{homepage}" end @@ -1057,11 +1058,12 @@ class ResourceAuditor %r{^http://code\.google\.com/}, %r{^http://fossies\.org/}, %r{^http://mirrors\.kernel\.org/}, - %r{^http://([^/]*\.|)bintray\.com/}, + %r{^http://(?:[^/]*\.)?bintray\.com/}, %r{^http://tools\.ietf\.org/}, %r{^http://www\.mirrorservice\.org/}, %r{^http://launchpad\.net/}, - %r{^http://bitbucket\.org/} + %r{^http://bitbucket\.org/}, + %r{^http://(?:[^/]*\.)?archive\.org} problem "Please use https:// for #{p}" when %r{^http://search\.mcpan\.org/CPAN/(.*)}i problem "#{p} should be `https://cpan.metacpan.org/#{$1}`" -- cgit v1.2.3