Florian Weimer
2010-May-10 19:08 UTC
[Secure-testing-commits] r14665 - doc lib/python/sectracker lib/python/sectracker_test
Author: fw Date: 2010-05-10 19:08:42 +0000 (Mon, 10 May 2010) New Revision: 14665 Modified: doc/python-format.txt lib/python/sectracker/analyzers.py lib/python/sectracker_test/test_analyzers.py Log: sectracker.analyzers.fixedversions: renamed from vulnerabilities Modified: doc/python-format.txt ==================================================================--- doc/python-format.txt 2010-05-10 19:06:41 UTC (rev 14664) +++ doc/python-format.txt 2010-05-10 19:08:42 UTC (rev 14665) @@ -111,7 +111,7 @@ # Derived vulnerability information -sectracker.analyzers.vulnerabilities() computes fixed versions for +sectracker.analyzers.fixedversions() computes fixed versions for bug/package pairs. These are returned in a list of vulnerability objects: Modified: lib/python/sectracker/analyzers.py ==================================================================--- lib/python/sectracker/analyzers.py 2010-05-10 19:06:41 UTC (rev 14664) +++ lib/python/sectracker/analyzers.py 2010-05-10 19:08:42 UTC (rev 14665) @@ -101,7 +101,7 @@ Vulnerability = _namedtuple("Vulnerability", "bug package fixed fixed_other") -def vulnerabilities(bugdb, copysrc, versions, diag): +def fixedversions(bugdb, copysrc, versions, diag): """Determine vulnerable versions. Returns named tuples with fields "bug", "package", "fixed", Modified: lib/python/sectracker_test/test_analyzers.py ==================================================================--- lib/python/sectracker_test/test_analyzers.py 2010-05-10 19:06:41 UTC (rev 14664) +++ lib/python/sectracker_test/test_analyzers.py 2010-05-10 19:08:42 UTC (rev 14665) @@ -49,8 +49,8 @@ assert "CVE-2008-0225" in copysrc assert "DSA-1472-1" in copysrc["CVE-2008-0225"] -# vulnerabilities -vdb = vulnerabilities(bugdb, copysrc, rpv, diag) +# fixedversions +vdb = fixedversions(bugdb, copysrc, rpv, diag) if False: for v in vdb: print v