check_source: when kind is None then it can be a new package
if package_kind() returned None then the submission can be a new package submission, check_source should continue the process instead of decline the request.
This commit is contained in:
parent
9af682c9b3
commit
e8f00f8ad1
@ -82,7 +82,7 @@ class CheckSource(ReviewBot.ReviewBot):
|
||||
if kind == 'meta':
|
||||
self.review_messages['accepted'] = 'Skipping all checks for meta packages'
|
||||
return True
|
||||
elif kind != 'source':
|
||||
elif (kind is not None and kind != 'source'):
|
||||
self.review_messages['accepted'] = 'May not modify a non-source package of type {}'.format(kind)
|
||||
return False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user