make builder code similarly tolerant

This commit is contained in:
Mike McLean 2021-02-03 14:32:22 -05:00 committed by Tomas Kopecek
parent 899c17cc53
commit 441aad0aef

View file

@ -5557,7 +5557,7 @@ class CreaterepoTask(BaseTaskHandler):
# generate repo url list, starting with our local premerge repo # generate repo url list, starting with our local premerge repo
repos = ['file://' + localdir + '/'] repos = ['file://' + localdir + '/']
for repo in external_repos: for repo in external_repos:
if repo['arches'] and arch not in repo['arches'].split(): if repo.get('arches') and arch not in repo['arches'].split():
# ignore external repo with non-relevant archlist # ignore external repo with non-relevant archlist
continue continue
ext_url = repo['url'] ext_url = repo['url']