aggregate all causes, but take the status from the latest version

bzr-import-20160707
Colin Watson 12 years ago
parent 5d00fa864e
commit 3e6fd501c9

@ -110,9 +110,12 @@ 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():
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):

Loading…
Cancel
Save