diff options
| author | Viktor Szakats | 2015-04-19 15:14:11 +0200 | 
|---|---|---|
| committer | Mike McQuaid | 2015-04-19 15:32:04 +0100 | 
| commit | f16ffd2a9ee5d29c7c0ae672c17bd129240adbb5 (patch) | |
| tree | efa6475f5917da1677922ccf1ce8428ce223a44e /Library/Homebrew/cmd/audit.rb | |
| parent | 977e54c4d8d88c59516ceb2ff75d8c3098f041bf (diff) | |
| download | homebrew-f16ffd2a9ee5d29c7c0ae672c17bd129240adbb5.tar.bz2 | |
audit: enforce new https url style for gnome downloads
also delete extra closing parenthesis in two problem messages
Closes #38824.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/cmd/audit.rb')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index adde76ff9..ebf8f0045 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -279,9 +279,9 @@ class FormulaAuditor      # "Software" is redirected to https://wiki.freedesktop.org/www/Software/project_name      if homepage =~ %r[^http://((?:www|nice|libopenraw|liboil|telepathy|xorg)\.)?freedesktop\.org/(?:wiki/)?]        if homepage =~ /Software/ -        problem "The url should be styled `https://wiki.freedesktop.org/www/Software/project_name`, not #{homepage})." +        problem "The url should be styled `https://wiki.freedesktop.org/www/Software/project_name`, not #{homepage}."        else -        problem "The url should be styled `https://wiki.freedesktop.org/project_name`, not #{homepage})." +        problem "The url should be styled `https://wiki.freedesktop.org/project_name`, not #{homepage}."        end      end @@ -342,6 +342,8 @@ class FormulaAuditor          problem "Bintray urls should be https://, not http (url is #{p})."        when %r[^http://tools\.ietf\.org/]          problem "ietf urls should be https://, not http (url is #{p})." +      when %r[^(http|ftp)://ftp\.gnome\.org/pub/gnome/(.*)]i +        problem "Gnome url should be `https://download.gnome.org/#{$2}` (url is #{p})."        end      end | 
