Properly check branches in change requests

Weren't properly checking for valid branch names when parsing change
requests.
This commit is contained in:
Jason Tibbitts 2010-08-13 13:26:35 -05:00
parent 4e77028f98
commit 3634c7fe94

View file

@ -570,7 +570,7 @@ def process_change_request(bug, comment, allcomments, firstfound, pkgdb, branche
warned = True
if not len(items['New Branches']):
warnings.append("WARNING: No new branches requested.")
for i in request['branches']:
for i in request['newbranches']:
if i not in branches:
warnings.append("WARNING: Invalid branch %s requested" % i)
warned = True