summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2010-05-09 14:34:14 +0000
committerFlorian Weimer <fw@deneb.enyo.de>2010-05-09 14:34:14 +0000
commit81932e3021aa12761f1b23d6b17196a83f8d1d4f (patch)
tree728429d649ac81526d1127540c51fcc915a72f38 /lib
parent4adef3c017907b400b6aba05f55c29000f77d787 (diff)
sectracker.analyzers._re_source: introduce by refactoring
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@14658 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib')
-rw-r--r--lib/python/sectracker/analyzers.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/python/sectracker/analyzers.py b/lib/python/sectracker/analyzers.py
index 433a2c41ab..c3fdd365bc 100644
--- a/lib/python/sectracker/analyzers.py
+++ b/lib/python/sectracker/analyzers.py
@@ -69,18 +69,18 @@ def extractversions(config, bugdb, diag):
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 @@ def copysources(bugdb, diag):
else:
result[target] = set((copy_source,))
return result
-
-

© 2014-2024 Faster IT GmbH | imprint | privacy policy