Properly check branches in change requests
Weren't properly checking for valid branch names when parsing change requests.
This commit is contained in:
parent
4e77028f98
commit
3634c7fe94
1 changed files with 1 additions and 1 deletions
|
@ -570,7 +570,7 @@ def process_change_request(bug, comment, allcomments, firstfound, pkgdb, branche
|
||||||
warned = True
|
warned = True
|
||||||
if not len(items['New Branches']):
|
if not len(items['New Branches']):
|
||||||
warnings.append("WARNING: No new branches requested.")
|
warnings.append("WARNING: No new branches requested.")
|
||||||
for i in request['branches']:
|
for i in request['newbranches']:
|
||||||
if i not in branches:
|
if i not in branches:
|
||||||
warnings.append("WARNING: Invalid branch %s requested" % i)
|
warnings.append("WARNING: Invalid branch %s requested" % i)
|
||||||
warned = True
|
warned = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue