From 3af7d62c90730ed51b2c1d8727c02512b7666ac4 Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Dec 23 2010 16:34:00 +0000 Subject: Better handle odd InitialCC formats Handle "foo,bar,baz" as well as other combinations of spaces and commas. --- diff --git a/scripts/process-git-requests/process-git-requests b/scripts/process-git-requests/process-git-requests index aec7b15..3354775 100755 --- a/scripts/process-git-requests/process-git-requests +++ b/scripts/process-git-requests/process-git-requests @@ -312,7 +312,9 @@ def clean_request(items): request['owner'] = '' request['comaintainers'] = [] - request['cc_list'] = items['InitialCC'].split() + cclist = items['InitialCC'].strip() + cclist = re.sub(r',', ' ', cclist) + request['cc_list'] = cclist.split() request['pkg'] = items['Package Name'] request['description'] = items['Short Description']