check_source: decline package of kind not (meta or source).

This commit is contained in:
Jimmy Berry 2019-09-24 11:26:52 -05:00
parent 91aeaf1f55
commit afd288b87d

View File

@ -82,6 +82,9 @@ class CheckSource(ReviewBot.ReviewBot):
if kind == 'meta':
self.review_messages['accepted'] = 'Skipping all checks for meta packages'
return True
elif kind != 'source':
self.review_messages['accepted'] = 'May not modify a non-source package of type {}'.format(kind)
return False
inair_renamed = target_package != source_package