better default handling for getMultiArchInfo

Fixes https://pagure.io/koji/issue/4161
This commit is contained in:
Mike McLean 2024-08-12 09:49:17 -04:00 committed by Tomas Kopecek
parent 69dd65b01e
commit 23495b773b
2 changed files with 5 additions and 3 deletions

View file

@ -414,7 +414,9 @@ canonArch = getCanonArch()
# this gets you the "compat" arch of a biarch pair
def getMultiArchInfo(arch=canonArch):
def getMultiArchInfo(arch=None):
if arch is None:
arch = canonArch
if arch in multilibArches:
return multilibArches[arch]
if arch in arches and arches[arch] != "noarch":