From e9a33fa4c5c57e9f19e87bec89d3e5a40483ffb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?El=C5=91d=20Ill=C3=A9s?= Date: Tue, 26 Aug 2025 14:54:04 +0200 Subject: [PATCH] [tool] Fix missing-releases command again MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- openstack_releases/links.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/openstack_releases/links.py b/openstack_releases/links.py index d6a9b1fbd3..4fafd2492e 100644 --- a/openstack_releases/links.py +++ b/openstack_releases/links.py @@ -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), )