audit: enforce gnome urls

Closes Homebrew/homebrew#40172.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Viktor Szakats 2015-05-29 02:39:24 +02:00 committed by Mike McQuaid
parent 0fc906b03d
commit 26d1683039

View File

@ -892,6 +892,8 @@ class ResourceAuditor
problem "Please use https:// for #{p}"
when %r[^http://search\.mcpan\.org/CPAN/(.*)]i
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}`"
end
end