create repos properly even if all rpms are noarch

This commit is contained in:
Mike McLean 2009-02-09 16:43:38 -05:00
parent cc5828fc58
commit 6bcbe82045

View file

@ -1734,6 +1734,8 @@ def repo_init(tag, with_src=False, with_debuginfo=False, event=None):
builds = dict([[build['build_id'],build] for build in builds])
#index the packages by arch
packages = {}
for repoarch in repo_arches:
packages.setdefault(repoarch, [])
for rpminfo in rpms:
if (rpminfo['name'].endswith('-debuginfo') or rpminfo['name'].endswith('-debuginfo-common')) \
and not with_debuginfo: