Attempt to handle misformatted change requests
For whatever reason some folks put "Branches" instead of "New Branches" in their change requests. Try to handle this better, but I don't think it's working properly yet.
This commit is contained in:
parent
703371fab6
commit
6846f2a586
1 changed files with 8 additions and 0 deletions
|
@ -557,6 +557,14 @@ def process_change_request(bug, comment, allcomments, firstfound, pkgdb, branche
|
||||||
# Try to enforce EPEL branch rules
|
# Try to enforce EPEL branch rules
|
||||||
if not len(owners):
|
if not len(owners):
|
||||||
warnings.append("WARNING: Package does not appear to exist in pkgdb currently.")
|
warnings.append("WARNING: Package does not appear to exist in pkgdb currently.")
|
||||||
|
|
||||||
|
if not len(items['New Branches']) and len(items['Branches']):
|
||||||
|
warnings.append("NOTE: Misformatted request; using 'Branches' instead.")
|
||||||
|
items['New Branches'] == items['Branches'];
|
||||||
|
request['newbranches'] = request['branches']
|
||||||
|
print items
|
||||||
|
print request
|
||||||
|
|
||||||
for i in owners.keys():
|
for i in owners.keys():
|
||||||
if request['owner'] == owners[i]['primary'] or request['owner'] in owners[i]['comaint']:
|
if request['owner'] == owners[i]['primary'] or request['owner'] in owners[i]['comaint']:
|
||||||
owned = True
|
owned = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue