[fix][arch] not checking if **pacman-mirrors** is available before starting to download repository packages

This commit is contained in:
Vinicius Moreira
2020-06-01 10:58:46 -03:00
parent 895443a34e
commit 5901c4ceea
11 changed files with 20 additions and 10 deletions

View File

@@ -1627,7 +1627,9 @@ class ArchManager(SoftwareManager):
return True
def _should_download_packages(self, arch_config: dict) -> bool:
return bool(arch_config['repositories_mthread_download']) and self.context.file_downloader.is_multithreaded()
return bool(arch_config['repositories_mthread_download']) \
and self.context.file_downloader.is_multithreaded() \
and pacman.is_mirrors_available()
def _download_packages(self, pkgnames: List[str], handler: ProcessHandler, root_password: str, sizes: Dict[str, int] = None) -> int:
download_service = MultithreadedDownloadService(file_downloader=self.context.file_downloader,