external repos can have specified arch list
Fixes: https://pagure.io/koji/issue/2538
This commit is contained in:
parent
c39f6e9afa
commit
24bd694865
7 changed files with 46 additions and 15 deletions
|
|
@ -5550,6 +5550,9 @@ class CreaterepoTask(BaseTaskHandler):
|
|||
# generate repo url list, starting with our local premerge repo
|
||||
repos = ['file://' + localdir + '/']
|
||||
for repo in external_repos:
|
||||
if repo['arches'] and arch not in repo['arches'].split():
|
||||
# ignore external repo with non-relevant archlist
|
||||
continue
|
||||
ext_url = repo['url']
|
||||
# substitute $arch in the url with the arch of the repo we're generating
|
||||
ext_url = ext_url.replace('$arch', arch)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue