[Secure-testing-commits] r16653 - bin

Florian Weimer fw at alioth.debian.org
Tue May 10 19:54:05 UTC 2011


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])




More information about the Secure-testing-commits mailing list