mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-10 20:14:15 +02:00
[fix][ui] calling required tasks when '--settings' is specified as a param
This commit is contained in:
@@ -502,7 +502,7 @@ class ArchManager(SoftwareManager):
|
||||
self.disk_cache_updater.join()
|
||||
self.logger.info("Disk cache ready")
|
||||
|
||||
def read_installed(self, disk_loader: DiskCacheLoader, limit: int = -1, only_apps: bool = False, pkg_types: Set[Type[SoftwarePackage]] = None, internet_available: bool = None, names: Iterable[str] = None) -> SearchResult:
|
||||
def read_installed(self, disk_loader: DiskCacheLoader, limit: int = -1, only_apps: bool = False, pkg_types: Set[Type[SoftwarePackage]] = None, internet_available: bool = None, names: Iterable[str] = None, wait_disk_cache: bool = True) -> SearchResult:
|
||||
self.aur_client.clean_caches()
|
||||
arch_config = read_config()
|
||||
|
||||
@@ -532,7 +532,8 @@ class ArchManager(SoftwareManager):
|
||||
|
||||
pkgs = []
|
||||
if repo_pkgs or aur_pkgs:
|
||||
self._wait_for_disk_cache()
|
||||
if wait_disk_cache:
|
||||
self._wait_for_disk_cache()
|
||||
|
||||
map_threads = []
|
||||
|
||||
|
||||
@@ -124,7 +124,8 @@ class ArchDiskCacheUpdater(Thread):
|
||||
self.logger.info('Pre-caching installed Arch packages data to disk')
|
||||
|
||||
installed = self.controller.read_installed(disk_loader=None, internet_available=self.internet_available,
|
||||
only_apps=False, pkg_types=None, limit=-1, names=not_cached_names).installed
|
||||
only_apps=False, pkg_types=None, limit=-1, names=not_cached_names,
|
||||
wait_disk_cache=False).installed
|
||||
|
||||
self.task_man.update_progress(self.task_id, 0, self.i18n['arch.task.disk_cache.reading'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user