AUR: Waiting for the the disk cache data loader only if needed

This commit is contained in:
Vinicius Moreira
2019-09-30 15:40:55 -03:00
parent baf85d1be1
commit 2be6d6ddf2
2 changed files with 9 additions and 4 deletions

View File

@@ -6,9 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [0.6.2] 2019-09-
### Improvements
- Installed files of AUR packages available in the Info window
- Update notifications showing the number of updates by type as well
- Improving Arch distro checking
- AUR:
- Installed files available in the Info window
- Waiting for the the disk cache data loader only if needed
- Improving Arch distro checking
### Fixes
- Update-check daemon not showing notifications

View File

@@ -67,7 +67,8 @@ class ArchManager(SoftwareManager):
Thread(target=self.mapper.fill_package_build, args=(app,)).start()
def search(self, words: str, disk_loader: DiskCacheLoader, limit: int = -1) -> SearchResult:
self.comp_optimizer.join()
if self.comp_optimizer.isAlive():
self.comp_optimizer.join()
downgrade_enabled = git.is_enabled()
res = SearchResult([], [], 0)
@@ -155,7 +156,9 @@ class ArchManager(SoftwareManager):
apps = []
if installed and installed['not_signed']:
self.dcache_updater.join()
if self.dcache_updater.isAlive():
self.dcache_updater.join()
self._fill_aur_pkgs(installed['not_signed'], apps, disk_loader, internet_available)
return SearchResult(apps, None, len(apps))