commit:     f8ecea15c312ee9dcb28871811de9d68ef7b41b4
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 15 19:35:47 2016 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Aug 15 19:36:38 2016 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=f8ecea15

repoman: deduplicate dependency.syntax errors (bug 591184)

X-Gentoo-bug: 591184
X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=591184

 repoman/pym/repoman/modules/scan/depend/_depend_checks.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/repoman/pym/repoman/modules/scan/depend/_depend_checks.py 
b/repoman/pym/repoman/modules/scan/depend/_depend_checks.py
index f0ae863..807a918 100644
--- a/repoman/pym/repoman/modules/scan/depend/_depend_checks.py
+++ b/repoman/pym/repoman/modules/scan/depend/_depend_checks.py
@@ -1,5 +1,6 @@
 # -*- coding:utf-8 -*-
 
+import collections
 
 from _emerge.Package import Package
 
@@ -160,7 +161,12 @@ def _depend_checks(ebuild, pkg, portdb, qatracker, 
repo_metadata):
                        check_slotop(mydepstr, pkg.iuse.is_valid_flag,
                                badsyntax, mytype, qatracker, 
ebuild.relative_path)
 
+       dedup = collections.defaultdict(set)
        for m, b in badsyntax:
+               if b in dedup[m]:
+                       continue
+               dedup[m].add(b)
+
                if m.endswith("DEPEND"):
                        qacat = "dependency.syntax"
                else:

Reply via email to