group rpms by arch instead of canon arch on the buildinfo page (this makes the build log links correct)

This commit is contained in:
Mike Bonnet 2009-02-13 17:50:12 -05:00
parent 0998d39f8e
commit a64cd7c7cf

View file

@ -966,11 +966,10 @@ def buildinfo(req, buildID):
rpmsByArch = {}
debuginfoByArch = {}
for rpm in rpms:
canon_arch = koji.canonArch(rpm['arch'])
if rpm['name'].endswith('-debuginfo') or rpm['name'].endswith('-debuginfo-common'):
debuginfoByArch.setdefault(canon_arch, []).append(rpm)
debuginfoByArch.setdefault(rpm['arch'], []).append(rpm)
else:
rpmsByArch.setdefault(canon_arch, []).append(rpm)
rpmsByArch.setdefault(rpm['arch'], []).append(rpm)
if rpmsByArch.has_key('src'):
srpm = rpmsByArch['src'][0]