diff options
| author | Mike McQuaid | 2017-06-03 10:01:22 +0100 | 
|---|---|---|
| committer | GitHub | 2017-06-03 10:01:22 +0100 | 
| commit | 1d034265af9258bbb02f7ce4ce805728f1042d0f (patch) | |
| tree | 3bc4bc2813fe62e722866fe80b9cbf811f188d31 /Library/Homebrew/dev-cmd/audit.rb | |
| parent | d6c4dfc783230cb74d43bbcaca421e44bf1e255f (diff) | |
| parent | cbfc83309fd69105fb522e4dd3477f333c89268e (diff) | |
| download | brew-1d034265af9258bbb02f7ce4ce805728f1042d0f.tar.bz2 | |
Merge pull request #2726 from MikeMcQuaid/audit-pypi-urls
audit: check pypi URLs
Diffstat (limited to 'Library/Homebrew/dev-cmd/audit.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 8e5acf52b..ccc8cd7c3 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -1497,6 +1497,14 @@ class ResourceAuditor        problem "#{u} should be `https://search.maven.org/remotecontent?filepath=#{$1}`"      end +    # Check pypi urls +    if @strict +      urls.each do |p| +        next unless p =~ %r{^https?://pypi.python.org/(.*)} +        problem "#{p} should be `https://files.pythonhosted.org/#{$2}`" +      end +    end +      return unless @online      urls.each do |url|        next if !@strict && mirrors.include?(url)  | 
