From afd288b87d946df3464c4037b50eea41653ecec3 Mon Sep 17 00:00:00 2001 From: Jimmy Berry Date: Tue, 24 Sep 2019 11:26:52 -0500 Subject: [PATCH] check_source: decline package of kind not (meta or source). --- check_source.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/check_source.py b/check_source.py index ebbd84d1..c2a6947a 100755 --- a/check_source.py +++ b/check_source.py @@ -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