distrepos: support "x86_64_v2" arch

This fixes a KeyError when trying to make a distrepo for the arch "x86_64_v2".
This commit is contained in:
Matyas Selmeci 2025-06-19 17:05:21 -05:00 committed by Mike McLean
parent b1e2e4b3af
commit 7e675c1469

View file

@ -6220,7 +6220,8 @@ class createDistRepoTask(BaseTaskHandler):
archmap = {'s390x': 's390', 'ppc64': 'ppc', 'x86_64': 'i686'}
compat = {"i386": ("athlon", "i686", "i586", "i486", "i386", "noarch"),
"x86_64": ("amd64", "ia32e", "x86_64", "noarch"),
"x86_64": ("amd64", "ia32e", "x86_64", "x86_64_v2", "noarch"),
"x86_64_v2": ("amd64", "ia32e", "x86_64", "x86_64_v2", "noarch"),
"ia64": ("ia64", "noarch"),
"ppc": ("ppc", "noarch"),
"ppc64": ("ppc64p7", "ppc64pseries", "ppc64iseries", "ppc64", "noarch"),