From 3e6fd501c93f5dcb5eea8c080c3926c4ce6a3f56 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Tue, 9 Jul 2013 16:25:51 +0100 Subject: [PATCH] aggregate all causes, but take the status from the latest version --- autopkgtest.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/autopkgtest.py b/autopkgtest.py index 7c2e86f..f3c613a 100644 --- a/autopkgtest.py +++ b/autopkgtest.py @@ -110,10 +110,13 @@ class AutoPackageTest(object): # End of the list pass for src in self.pkglist: - ver = sorted(self.pkglist[src], cmp=apt_pkg.version_compare)[-1] - status = self.pkglist[src][ver]["status"] - for trigsrc, trigver in self.pkglist[src][ver]["causes"].items(): - self.pkgcauses[trigsrc][trigver].append((status, src, ver)) + all_vers = sorted(self.pkglist[src], cmp=apt_pkg.version_compare) + latest_ver = all_vers[-1] + status = self.pkglist[src][latest_ver]["status"] + for ver in self.pkglist[src]: + for trigsrc, trigver in \ + self.pkglist[src][ver]["causes"].items(): + self.pkgcauses[trigsrc][trigver].append((status, src, ver)) def _adt_britney(self, *args): command = [