summaryrefslogtreecommitdiffstats
path: root/rpmci/rpmci_srpm_builder_main.py
diff options
context:
space:
mode:
Diffstat (limited to 'rpmci/rpmci_srpm_builder_main.py')
-rw-r--r--rpmci/rpmci_srpm_builder_main.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpmci/rpmci_srpm_builder_main.py b/rpmci/rpmci_srpm_builder_main.py
index 724bfbd..9bc260a 100644
--- a/rpmci/rpmci_srpm_builder_main.py
+++ b/rpmci/rpmci_srpm_builder_main.py
@@ -102,12 +102,12 @@ class SRPMBuilder(object):
logging.debug("Creating SRPMs for VCS urls: %r" % (updated_vcs_urls, ))
work_dir = tempfile.mkdtemp('.tmp', 'srpm-builder')
- updated_srpms = []
- updated_srpm_names = []
+ updated_srpms = set()
+ updated_srpm_names = set()
for url in updated_vcs_urls:
srpm = self._create_srpm_for_updated_vcs_url(work_dir, url)
- updated_srpms.append(srpm)
- updated_srpm_names.append(rpmutils.get_rpm_name(os.path.basename(srpm)))
+ updated_srpms.add(srpm)
+ updated_srpm_names.add(rpmutils.get_rpm_name(os.path.basename(srpm)))
commitid = self._srcrepo.commit_sync(updated_srpms)
logging.info("New repository revision %d updates SRPMs=%r" % (commitid, updated_srpm_names))
shutil.rmtree(work_dir)