aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Behte <craig@gentoo.org>2010-03-06 15:13:42 +0000
committerStefan Behte <craig@gentoo.org>2010-03-06 15:13:42 +0000
commit1e5ee58393c2f501411c8e880b410eb2ab82c468 (patch)
tree55b6799b0114885c703fd9ee2578a571a23c8487 /lib
parentBuggy bugz bugz bugz... (diff)
downloadsecurity-1e5ee58393c2f501411c8e880b410eb2ab82c468.tar.gz
security-1e5ee58393c2f501411c8e880b410eb2ab82c468.tar.bz2
security-1e5ee58393c2f501411c8e880b410eb2ab82c468.zip
fix for finding maintainers, we now also use category/name: DESC (CVE-XXXX-YYYY), and the : made some problems.
svn path=/; revision=1901
Diffstat (limited to 'lib')
-rwxr-xr-xlib/python/assign.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/python/assign.py b/lib/python/assign.py
index 82d894b..4f5fa2d 100755
--- a/lib/python/assign.py
+++ b/lib/python/assign.py
@@ -29,7 +29,7 @@ def uniq(seq):
def get_pkg_cat(string):
""" returns a list with packages or categories found that exist in portdir """
metadatadirs = []
-
+
matches = re.findall(r"(?#start: )(?:^|\s)[<>~=]*(?#\
cat: )([A-Za-z0-9+_][A-Za-z0-9+_.-]*/(?#\
pnv: )[A-Za-z0-9+_][A-Za-z0-9+_.:@-]*)", string)
@@ -84,7 +84,12 @@ def get_cc_from_string(string):
""" returns an ordered list of bug assignees / ccs for an arbitrary string such as
a bug title. the first element of the tuple (if present) is supposed to be the
assignee of the bug. """
+
ccs = []
+
+ """ replace ':' in "category/packet:", as it will prevent finding the correct maintainer(s) """
+ string=string.replace(':','')
+
metadatadirs = get_pkg_cat(string)
for dir in metadatadirs:
ccs.extend(get_maintainer_for(dir))