Make Dockerfile builds pass check_source.py
This commit is contained in:
parent
18652691b0
commit
54decdef37
@ -186,7 +186,8 @@ class CheckSource(ReviewBot.ReviewBot):
|
||||
shutil.rmtree(os.path.join(target_package, '.osc'))
|
||||
|
||||
new_info = self.package_source_parse(source_project, source_package, source_revision, target_package)
|
||||
if not new_info.get('filename', '').endswith('.kiwi') and new_info['name'] != target_package:
|
||||
filename = new_info.get('filename', '')
|
||||
if not (filename.endswith('.kiwi') or filename == 'Dockerfile') and new_info['name'] != target_package:
|
||||
shutil.rmtree(dir)
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user