mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 10:34:15 +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
|
- Arch
|
||||||
- crashing when information of a given package is not available
|
- 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)
|
- 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
|
- UI
|
||||||
- displaying a popup when information of a given package is not available
|
- displaying a popup when information of a given package is not available
|
||||||
|
|
||||||
|
|||||||
@@ -558,13 +558,16 @@ class ArchManager(SoftwareManager):
|
|||||||
self.aur_client.clean_caches()
|
self.aur_client.clean_caches()
|
||||||
arch_config = self.configman.get_config()
|
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)
|
installed = pacman.map_installed(names=names)
|
||||||
|
|
||||||
aur_pkgs, repo_pkgs = None, None
|
aur_pkgs, repo_pkgs = None, None
|
||||||
|
|
||||||
if arch_config['repositories'] and installed['signed']:
|
if repos_supported and installed['signed']:
|
||||||
repo_pkgs = installed['signed']
|
repo_pkgs = installed['signed']
|
||||||
|
|
||||||
if installed['not_signed']:
|
if installed['not_signed']:
|
||||||
|
|||||||
Reference in New Issue
Block a user