[Secure-testing-commits] r14658 - lib/python/sectracker

Florian Weimer fw at alioth.debian.org
Sun May 9 14:34:18 UTC 2010


Author: fw
Date: 2010-05-09 14:34:14 +0000 (Sun, 09 May 2010)
New Revision: 14658

Modified:
   lib/python/sectracker/analyzers.py
Log:
sectracker.analyzers._re_source: introduce by refactoring


Modified: lib/python/sectracker/analyzers.py
===================================================================
--- lib/python/sectracker/analyzers.py	2010-05-09 14:19:12 UTC (rev 14657)
+++ lib/python/sectracker/analyzers.py	2010-05-09 14:34:14 UTC (rev 14658)
@@ -69,18 +69,18 @@
                         pv[ann.package] = set((ann.version,))
     return rpv
 
+_re_source = _re.compile("^DT?SA-")
+
 def copysources(bugdb, diag):
     """Returns a dictionary, mapping bug names to their copy sources.
     
     As a side effect, this checks cross-references.  Errors found
     there are recorded in diag."""
 
-    re_source = _re.compile("^DT?SA-")
-
     result = {}
     for bug in bugdb.values():
         copy_source = bug.header.name
-        if not re_source.match(copy_source):
+        if not _re_source.match(copy_source):
             copy_source = None
         for ann in bug.annotations:
             if ann.type <> "xref":
@@ -96,5 +96,3 @@
                     else:
                         result[target] = set((copy_source,))
     return result
-
-                




More information about the Secure-testing-commits mailing list