repo_checker: skip packages for which not devel project exits.

This can occur when a package is removed from Factory, but still present
in Leap like libtxc_dxtn currently.
This commit is contained in:
Jimmy Berry 2018-01-23 21:23:20 -06:00
parent d074c5b0ce
commit 2dbe361cd7

View File

@ -85,6 +85,10 @@ class RepoChecker(ReviewBot.ReviewBot):
if bool(self.staging_config[project].get('repo_checker-package-comment-devel', True)):
bot_name_suffix = project
comment_project, comment_package = devel_project_fallback(self.apiurl, project, package)
if comment_project is None or comment_package is None:
self.logger.warning('unable to find devel project for {}'.format(package))
continue
message = 'The version of this package in [`{project}`](/package/show/{project}/{package}) ' \
'has installation issues and may not be installable:'.format(
project=project, package=package)