diff options
| author | Mike McQuaid | 2017-06-23 19:34:25 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-06-23 19:34:25 +0100 |
| commit | b9e3daac70c434c9a58d24adb5d655e9bb893c2f (patch) | |
| tree | c70c089d348305c93fdfa9ee7969220dfd9c1eda /Library/Homebrew | |
| parent | 8a5f12076bec42c0305c1121b82d81c455ab1501 (diff) | |
| download | brew-b9e3daac70c434c9a58d24adb5d655e9bb893c2f.tar.bz2 | |
audit: don't use Fossies as a primary URL.
As requested in:
https://github.com/Homebrew/homebrew-core/issues/14486#issuecomment-307753234
Diffstat (limited to 'Library/Homebrew')
| -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 |
