Fix for extra mirror

This commit is contained in:
Dimitris Zlatanidis 2024-04-08 22:43:17 +03:00
parent 9522421b5e
commit f48206bc4c

View file

@ -445,19 +445,16 @@ class UpdateRepositories(Configs):
self.utils.remove_file_if_exists(self.repos.salix_extra_repo_path, self.repos.salix_extra_repo_packages)
self.utils.remove_file_if_exists(self.repos.salix_extra_repo_path, self.repos.salix_extra_repo_checksums)
changelog: str = f'{self.repos.salix_extra_repo_mirror[0]}{self.repos.salix_extra_repo_changelog}'
if self.repos.salix_extra_repo_local[0].startswith('file'):
urls[self.repos.salix_extra_repo_name] = ((changelog,), self.repos.salix_extra_repo_path)
lftp_command: str = (
f'lftp {self.lftp_mirror_options}{self.lftp_extra_options}'
f'{"".join(self.repos.salix_extra_repo_mirror)} {self.repos.salix_extra_repo_path}'
f'{self.repos.salix_extra_repo_mirror[0]} {self.repos.salix_extra_repo_path}'
)
self.multi_process.process(lftp_command)
else:
packages: str = f'{"".join(self.repos.salix_extra_repo_mirror)}{self.repos.salix_extra_repo_packages}'
checksums: str = (f'{"".join(self.repos.salix_extra_repo_mirror)}'
f'{self.repos.salix_extra_repo_checksums}')
changelog: str = f'{self.repos.salix_extra_repo_mirror[0]}{self.repos.salix_extra_repo_changelog}'
packages: str = f'{self.repos.salix_extra_repo_mirror[0]}{self.repos.salix_extra_repo_packages}'
checksums: str = f'{self.repos.salix_extra_repo_mirror[0]}{self.repos.salix_extra_repo_checksums}'
urls[self.repos.salix_extra_repo_name] = ((changelog, packages, checksums),
self.repos.salix_extra_repo_path)