diff options
-rwxr-xr-x | lib/python/assign.py | 7 |
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)) |