diff options
| author | Viktor Szakats | 2017-02-05 18:03:11 +0100 |
|---|---|---|
| committer | Viktor Szakats | 2017-02-10 14:53:32 +0000 |
| commit | 03253a8d8b66b49eb6b6a7edd4ed353bcbf3a238 (patch) | |
| tree | 3c017b6b98e83eaa366a302d5e33371d1d9527d4 /Library/Homebrew/dev-cmd | |
| parent | 8535a8cd7fd94abd09eebe0a9133decb1bf8c715 (diff) | |
| download | brew-03253a8d8b66b49eb6b6a7edd4ed353bcbf3a238.tar.bz2 | |
audit: enforce https://*.sourceforge.io/ homepages
Ref: https://sourceforge.net/blog/introducing-https-for-project-websites/
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index b5dc4ecb1..d10ff51f4 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -584,6 +584,10 @@ class FormulaAuditor problem "Please use https:// for #{homepage}" end + if homepage =~ %r{^http://([^/]*)\.(sf|sourceforge)\.net(/|$)} + problem "#{homepage} should be `https://#{$1}.sourceforge.io/`" + end + # There's an auto-redirect here, but this mistake is incredibly common too. # Only applies to the homepage and subdomains for now, not the FTP URLs. if homepage =~ %r{^http://((?:build|cloud|developer|download|extensions|git|glade|help|library|live|nagios|news|people|projects|rt|static|wiki|www)\.)?gnome\.org} |
