diff options
| author | Mike McQuaid | 2017-06-24 13:29:42 +0100 |
|---|---|---|
| committer | GitHub | 2017-06-24 13:29:42 +0100 |
| commit | 1956c0a01c1b4e7a083a311512ea683e132481d9 (patch) | |
| tree | 2d75779b2f02a6cfc79b4718cb8a1aca1cdcc837 /Library | |
| parent | f4f1f1a6108970bf646aad82305978262c671ee2 (diff) | |
| parent | b9e3daac70c434c9a58d24adb5d655e9bb893c2f (diff) | |
| download | brew-1956c0a01c1b4e7a083a311512ea683e132481d9.tar.bz2 | |
Merge pull request #2817 from MikeMcQuaid/no-fossies-url
audit: don't use Fossies as a primary URL.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 6 |
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 |
