GatherSourceModule: return rpm_obj instead of the rpm_obj.name

Merges: https://pagure.io/pungi/pull-request/680
Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
This commit is contained in:
Jan Kaluza 2017-07-20 13:35:53 +02:00 committed by Lubomír Sedlář
parent 32ca02efd6
commit 5dd6b1b0e7

View File

@ -65,7 +65,7 @@ class GatherSourceModule(pungi.phases.gather.source.GatherSourceBase):
if (srpm in mmd.components.rpms.keys() and
rpm_obj.name not in mmd.filter.rpms and
rpm_obj.nevra in mmd.artifacts.rpms):
packages.add((rpm_obj.name, None))
packages.add((rpm_obj, None))
added_rpms.setdefault(mmd_id, [])
added_rpms[mmd_id].append(str(rpm_obj.nevra))