From b5805238aa06335af462b4c8c6bb59453cef4f9e Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 14 Aug 2026 23:11:53 -0400 Subject: sbolint: fix pypi bug. derp. --- sbolint | 6 +++--- 1 file 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... -- cgit v1.2.3