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 = [