mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
[arch] fix -> calling pacman to read installed packages when 'Repositories' and 'AUR' properties are set to 'false'
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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']:
|
||||
|
||||
Reference in New Issue
Block a user