repo_checker: project_only ensure project repository is published.

This commit is contained in:
Jimmy Berry 2017-10-27 17:46:45 -05:00
parent 31cf49a09e
commit b9bb3ce224

View File

@ -44,6 +44,12 @@ class RepoChecker(ReviewBot.ReviewBot):
# self.staging_config needed by target_archs(). # self.staging_config needed by target_archs().
api = self.staging_api(project) api = self.staging_api(project)
root = ET.fromstringlist(show_results_meta(
self.apiurl, project, multibuild=True, repository=['standard']))
if len(root.xpath('result[@state!="published"]')):
self.logger.info('{}/standard not published'.format(project))
return
comment = [] comment = []
for arch in self.target_archs(project): for arch in self.target_archs(project):
directory_project = self.mirror(project, arch) directory_project = self.mirror(project, arch)