[tool] Fix missing-releases command again

Previous patch [1] added different regex for tarball and wheel name
formatting, but now both tarball and wheel files are using '_' instead
of '.' and '-' in package names.

NOTE(elod.illes): this command only works for 2025.2 Flamingo and gives
false negatives when checking old series' deliverables.

[1] I049e05b55ea851c7115b753dc0ece35c052b21b3

Change-Id: I75bfe122a6e1d943cec13d69fcdd679569ebc9f4
Signed-off-by: Előd Illés <elod.illes@est.tech>
This commit is contained in:
Előd Illés
2025-08-26 14:54:04 +02:00
parent 83f1878d7f
commit e9a33fa4c5

View File

@@ -16,11 +16,7 @@ import re
import requests
def _format_wheel_name(name):
return re.sub(r"[-]+", "_", name).lower()
def _format_tarball_name(name):
def _format_name(name):
return re.sub(r"[-.]+", "_", name).lower()
@@ -48,7 +44,7 @@ def tarball_url(version, project):
s='https://tarballs.openstack.org',
v=version,
r=repo_base,
n=_format_tarball_name(base),
n=_format_name(base),
)
@@ -59,7 +55,7 @@ def wheel_py3_url(version, project):
s='https://tarballs.openstack.org',
v=version,
r=repo_base,
n=_format_wheel_name(base),
n=_format_name(base),
)
@@ -70,7 +66,7 @@ def wheel_both_url(version, project):
s='https://tarballs.openstack.org',
v=version,
r=repo_base,
n=_format_wheel_name(base),
n=_format_name(base),
)