diff options
| -rwxr-xr-x | sbolint | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1400,13 +1400,13 @@ sub check_pypi_url { return unless $url =~ m{^(https?)://files.pythonhosted.org}; - # don't mess with URLs that don't have the 60-digit hex hash. - return unless $url =~ m{/[0-9a-f]{60}/}; - if($1 ne 'https') { log_error("$file: pypi URL must be https://"); } + # don't mess with URLs that don't have the 60-digit hex hash. + return unless $url =~ m{/[0-9a-f]{60}/}; + ($filename = $url) =~ s,.*/,,; $initial = substr($filename, 0, 1); # FIXME: assumes no - in the version number. So far that's true... |
