Handle requests without owners.

For some reason some people insert blank lines in their SCM requests.
Since we stop parsing at the first blank line, this results in requests
without owners or branches.  Handle that better.
This commit is contained in:
Jason Tibbitts 2010-08-27 14:53:06 -05:00
parent 61d7e383ba
commit 747b9b91c6

View file

@ -308,6 +308,9 @@ def clean_request(items):
if len(owners):
request['owner'] = owners.split()[0]
request['comaintainers'] = owners.split()[1:]
else:
request['owner'] = ''
request['comaintainers'] = []
request['cc_list'] = items['InitialCC'].split()
request['pkg'] = items['Package Name']