aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-08-14 23:11:53 -0400
committerB. Watson <urchlay@slackware.uk>2026-08-14 23:11:53 -0400
commitb5805238aa06335af462b4c8c6bb59453cef4f9e (patch)
tree89b4f564b720b973dc5bb3f1c7d594d9e23be602
parent1de77e21f3943484c63acee2fb0f9632e61b950c (diff)
downloadsbo-maintainer-tools-b5805238aa06335af462b4c8c6bb59453cef4f9e.tar.gz
sbolint: fix pypi bug. derp.
-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...