[arch] fix -> calling pacman to read installed packages when 'Repositories' and 'AUR' properties are set to 'false'

This commit is contained in:
Vinicius Moreira
2021-01-12 11:44:47 -03:00
parent 6aebaf6718
commit d912eb3aef
2 changed files with 6 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Arch
- crashing when information of a given package is not available
- displaying "provided" repository packages on the search results (e.g: **nvidia** would appear as a package)
- calling pacman to read installed packages when "Repositories" and "AUR" properties are set to "false" (it would not display the packages, but the call was unnecessary being done)
- UI
- displaying a popup when information of a given package is not available

View File

@@ -558,13 +558,16 @@ class ArchManager(SoftwareManager):
self.aur_client.clean_caches()
arch_config = self.configman.get_config()
aur_supported = aur.is_supported(arch_config)
aur_supported, repos_supported = aur.is_supported(arch_config), arch_config['repositories']
if not aur_supported and not repos_supported:
return SearchResult.empty()
installed = pacman.map_installed(names=names)
aur_pkgs, repo_pkgs = None, None
if arch_config['repositories'] and installed['signed']:
if repos_supported and installed['signed']:
repo_pkgs = installed['signed']
if installed['not_signed']: