CI: Fix all_supplementing_pythons wrt. freethreading Pythons

[skip changelog]
This commit is contained in:
Miro Hrončok
2026-01-05 16:18:46 +01:00
parent bfcb4db415
commit de396d650b

View File

@@ -66,10 +66,13 @@ for nvra in supplementing_pkgs:
# We use this hack to treat -devel and -libs packages as if they were not such
# We also convert the freethreading packages to the exectuable name
def normalize_name(pkgname):
for suffix in '-devel', '-libs':
if pkgname.endswith(suffix):
return pkgname.removesuffix(suffix)
pkgname = pkgname.removesuffix(suffix)
if pkgname.endswith('-freethreading'):
pkgname = pkgname.removesuffix('-freethreading') + 't'
return pkgname