aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index a6c71f795..e84225cfc 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