aboutsummaryrefslogtreecommitdiff
path: root/sbolint
diff options
context:
space:
mode:
Diffstat (limited to 'sbolint')
-rwxr-xr-xsbolint6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbolint b/sbolint
index c85e74e..19065cf 100755
--- a/sbolint
+++ b/sbolint
@@ -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...