From 9c59f35af4c1eaaa929d4faf576452c7f42b0a32 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 7 Jul 2015 08:05:19 +0200 Subject: [PATCH] AutoPkgTest.tests_for_source(): Avoid reporting duplicate results --- autopkgtest.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/autopkgtest.py b/autopkgtest.py index b817aa9..db06526 100644 --- a/autopkgtest.py +++ b/autopkgtest.py @@ -86,10 +86,13 @@ class AutoPackageTest(object): # interested in for reverse dependency checking binaries_info = self.britney.binaries['unstable']['amd64'][0] + reported_pkgs = set() + srcinfo = sources_info[src] # we want to test the package itself, if it still has a test in # unstable if srcinfo[AUTOPKGTEST]: + reported_pkgs.add(src) yield (src, ver) # plus all direct reverse dependencies of its binaries which have @@ -104,8 +107,10 @@ class AutoPackageTest(object): for rdep in rdeps: rdep_src = binaries_info[rdep][SOURCE] if sources_info[rdep_src][AUTOPKGTEST]: - # we don't care about the version of rdep - yield (rdep_src, None) + if rdep_src not in reported_pkgs: + # we don't care about the version of rdep + yield (rdep_src, None) + reported_pkgs.add(rdep_src) # # AMQP/cloud interface helpers