Record autopkgtest status more accurately in pkgcauses: use the status for the version being recorded, not just the one for the latest version found.

bzr-import-20160707
Colin Watson 12 years ago
parent 3f6eabe34f
commit 0ec8138015

@ -111,9 +111,8 @@ class AutoPackageTest(object):
pass
for src in self.pkglist:
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]:
status = self.pkglist[src][ver]["status"]
for trigsrc, trigver in \
self.pkglist[src][ver]["causes"].items():
self.pkgcauses[trigsrc][trigver].append((status, src, ver))

Loading…
Cancel
Save