audit: don't use Fossies as a primary URL.
As requested in: https://github.com/Homebrew/homebrew-core/issues/14486#issuecomment-307753234
This commit is contained in:
parent
8a5f12076b
commit
b9e3daac70
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user