From b9e3daac70c434c9a58d24adb5d655e9bb893c2f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 23 Jun 2017 19:34:25 +0100 Subject: [PATCH] audit: don't use Fossies as a primary URL. As requested in: https://github.com/Homebrew/homebrew-core/issues/14486#issuecomment-307753234 --- Library/Homebrew/dev-cmd/audit.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index a6c71f795d..e84225cfcd 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -1321,6 +1321,12 @@ class ResourceAuditor problem "Please use \"https://ftp.gnu.org/gnu/#{Regexp.last_match(1)}\" instead of #{url}." end + # Fossies upstream requests they aren't used as primary URLs + # https://github.com/Homebrew/homebrew-core/issues/14486#issuecomment-307753234 + if url =~ %r{^https?://fossies\.org/} + problem "Please don't use fossies.org in the url (using as a mirror is fine)" + end + if mirrors.include?(url) problem "URL should not be duplicated as a mirror: #{url}" end