Fix possible ignoring of owner or CC warnings.

If the only warnings were due to bad owners or CC's, the script failed
to force acceptance of them before proceeding.
This commit is contained in:
Jason Tibbitts 2010-11-15 09:28:42 -06:00
parent bb8e2a8eda
commit fff5874451

View file

@ -445,7 +445,10 @@ def process_new_request(bug, comment, allcomments, firstfound, pkgdb, fas, branc
items = parse_prefixed_lines(comment['text'])
request = clean_request(items)
warnings.extend(check_owners(fas, request['owner'], request['comaintainers'], request['cc_list']))
w = check_owners(fas, request['owner'], request['comaintainers'], request['cc_list'])
if len(w):
warnings.extend(w)
warned = True
if not 'Owners' in items:
warnings.append("WARNING: No owners provided.")