checkrepo: convert remaining messages to use target_archs().
This commit is contained in:
parent
64b762956f
commit
4c6f84d842
@ -426,7 +426,8 @@ def _check_repo_group(self, id_, requests, skip_cycle=None, debug=False):
|
||||
if not hasattr(rq, 'goodrepo'):
|
||||
msg = 'Can not find a good repo for %s' % rq.str_compact()
|
||||
print 'NOT ACCEPTED - ', msg
|
||||
print 'Perhaps this request is not against i586/x86_64 build or i586 build only. For human to check!'
|
||||
print 'Perhaps this request is not against {}. For human to check!'.format(
|
||||
', '.join(self.repochecker.target_archs()))
|
||||
continue
|
||||
msg = 'Builds for repo %s' % rq.goodrepo
|
||||
print 'ACCEPTED', msg
|
||||
|
@ -760,7 +760,7 @@ class CheckRepo(object):
|
||||
return False
|
||||
|
||||
if not repos_to_check:
|
||||
msg = 'Missing i586 and x86_64 in the repo list'
|
||||
msg = 'Missing {} in the repo list'.format(', '.join(self.target_archs()))
|
||||
print ' - %s' % msg
|
||||
self.change_review_state(request.request_id, 'new', message=msg)
|
||||
# Next line not needed, but for documentation.
|
||||
|
Loading…
x
Reference in New Issue
Block a user