checkrepo: do not decline for disabled builds.
This behavior is inconsistent in that no builds is ignored, but builds that are disabled results in a decline. In order to allow for the request to be evaluated in staging it should not be declined so early.
This commit is contained in:
parent
0572d7482c
commit
13dba97ed7
@ -851,9 +851,9 @@ class CheckRepo(object):
|
||||
return True
|
||||
|
||||
if alldisabled:
|
||||
msg = '%s is disabled or does not build against factory. Please fix and resubmit' % request.src_package
|
||||
print '[DECLINED]', msg
|
||||
self.change_review_state(request.request_id, 'declined', message=msg)
|
||||
msg = '%s is disabled or does not build against the target project.' % request.src_package
|
||||
print msg
|
||||
self.change_review_state(request.request_id, 'new', message=msg)
|
||||
# Next line not needed, but for documentation
|
||||
request.updated = True
|
||||
return False
|
||||
|
Loading…
x
Reference in New Issue
Block a user