diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-08-14 23:11:53 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-08-14 23:11:53 -0400 |
| commit | b5805238aa06335af462b4c8c6bb59453cef4f9e (patch) | |
| tree | 89b4f564b720b973dc5bb3f1c7d594d9e23be602 /sbolint | |
| parent | 1de77e21f3943484c63acee2fb0f9632e61b950c (diff) | |
| download | sbo-maintainer-tools-b5805238aa06335af462b4c8c6bb59453cef4f9e.tar.gz | |
sbolint: fix pypi bug. derp.
Diffstat (limited to 'sbolint')
| -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... |
