From 963917682387002bb2ece19094dac86c06bf08e3 Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Thu, 3 Oct 2024 19:25:14 -0400 Subject: [PATCH] fix: extra repos processing --- iso/empanadas/empanadas/util/shared.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/iso/empanadas/empanadas/util/shared.py b/iso/empanadas/empanadas/util/shared.py index 021abd6..7849d5c 100644 --- a/iso/empanadas/empanadas/util/shared.py +++ b/iso/empanadas/empanadas/util/shared.py @@ -919,8 +919,10 @@ class Shared: compose_latest_sync, compose_dir_is_here: bool = False, hashed: bool = False, - extra_repos: list = None - ): + extra_repos: list = None, + staging_base_url: str = 'https://dl.rockylinux.org/stg', + use_staging: bool = False, + ): """ Builds the repo dictionary """ @@ -954,7 +956,9 @@ class Shared: repolist.append(repodata) if extra_repos: - repolist.append(repo for repo in Shared.parse_extra_repos(extra_repos)) + extras = Shared.parse_extra_repos(extra_repos) + for repo in extras: + repolist.append(repo) return repolist @@ -963,7 +967,7 @@ class Shared: # must be in format URL[,PRIORITY] result = [] for idx, candidate in enumerate(extra_repos): - if isinstance(dict, candidate): + if isinstance(candidate, dict): url, priority = candidate['url'], candidate.get('priority', None) url, priority = candidate.split(',') if not priority: