fix: pass extra repos

This commit is contained in:
Neil Hanlon 2024-10-03 16:46:21 -04:00
parent f72b1e2107
commit 84e18e6d8d
Signed by: neil
GPG Key ID: 705BC21EC3C70F34
3 changed files with 6 additions and 1 deletions

View File

@ -102,6 +102,7 @@ class RepoSync:
self.project_id = rlvars['project_id']
self.repo_renames = rlvars['renames']
self.repos = rlvars['all_repos']
self.extra_repos = rlvars['extra_repos']
self.multilib = rlvars['provide_multilib']
self.repo = repo
self.extra_files = rlvars['extra_files']

View File

@ -110,6 +110,7 @@ class IsoBuild:
self.revision = rlvars['revision']
self.rclvl = rlvars['rclvl']
self.repos = rlvars['iso_map']['lorax']['repos']
self.extra_repos = rlvars['extra_repos']
self.repo_base_url = config['repo_base_url']
self.project_id = rlvars['project_id']
self.structure = rlvars['structure']
@ -202,7 +203,8 @@ class IsoBuild:
self.current_arch,
self.compose_latest_sync,
self.compose_dir_is_here,
self.hashed
self.hashed,
self.extra_repos
)
self.log.info(self.revision_level)

View File

@ -947,6 +947,8 @@ class Shared:
# must be in format URL[,PRIORITY]
result = []
for idx, candidate in enumerate(extra_repos):
if isinstance(dict, candidate):
url, priority = candidate['url'], candidate.get('priority', None)
url, priority = candidate.split(',')
if not priority:
priority = 100