Author: fw Date: 2011-05-10 19:54:01 +0000 (Tue, 10 May 2011) New Revision: 16653 Modified: bin/gen-DSA.py Log: bin/gen-DSA.py: try to fix calculation of least fixed version over several bugs Modified: bin/gen-DSA.py ==================================================================--- bin/gen-DSA.py 2011-05-10 19:37:39 UTC (rev 16652) +++ bin/gen-DSA.py 2011-05-10 19:54:01 UTC (rev 16653) @@ -218,11 +218,13 @@ for bug in buglist: for ann in bug.notes: rel = relcode(ann.release or "sid") - if isinstance(ann, bugs.PackageNoteParsed) \ - and ann.fixed_version is not None \ - and ann.fixed_version != vzero \ - and ann.package == package and rel == codename: - versions.append(ann.fixed_version) + if isinstance(ann, bugs.PackageNoteParsed): + if ann.fixed_version is None: + return None # some bug is not fixed + if ann.fixed_version is not None \ + and ann.fixed_version != vzero \ + and ann.package == package and rel == codename: + versions.append(ann.fixed_version) if versions: versions.sort() return str(versions[-1])