check_source: Ensure the source and destination package name matches

This commit is contained in:
Dominique Leuenberger 2017-10-06 17:21:50 +02:00
parent a63d00ce65
commit 272348bc21
Signed by untrusted user: dimstar
GPG Key ID: E69F22089B497C99

View File

@ -81,6 +81,11 @@ class CheckSource(ReviewBot.ReviewBot):
self.review_messages['declined'] = "A package submitted as %s has to build as 'Name: %s' - found Name '%s'" % (target_package, target_package, new_info['name'])
return False
# We want to see the same package name in the devel project as in the distro; anything else calls for confusion
if source_package != target_package:
self.review_messages['declined'] = "No in-air renames: The package must be called the same in the devel project as in the target project"
return False
# Run check_source.pl script and interpret output.
source_checker = os.path.join(CheckSource.SCRIPT_PATH, 'check_source.pl')
civs = ''