limit repoclosure to archs on the command line

This commit is contained in:
Nathan Blackham 2024-10-04 22:08:55 -06:00
parent 92f79885ce
commit 68f06d38e0

View File

@ -669,7 +669,10 @@ class RepoSync:
repoclosure_entry_name_list = [] repoclosure_entry_name_list = []
self.log.info('Setting up repoclosure for {}'.format(repo)) self.log.info('Setting up repoclosure for {}'.format(repo))
for arch in self.repoclosure_map['arches']: arches_for_repoclosure = self.arches
if self.arch:
arches_for_repoclosure = self.arch.split(',')
for arch in arches_for_repoclosure:
repo_combination = [] repo_combination = []
repoclosure_entry_name = f'repoclosure-{repo}-{arch}' repoclosure_entry_name = f'repoclosure-{repo}-{arch}'
repoclosure_entry_name_list.append(repoclosure_entry_name) repoclosure_entry_name_list.append(repoclosure_entry_name)