mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[fix][arch] search not displaying installed packages that are no longer available on the databases
This commit is contained in:
@@ -11,9 +11,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
### Fixes
|
### Fixes
|
||||||
- Arch
|
- Arch
|
||||||
- not stopping the upgrade process if a transaction error happens
|
- not stopping the upgrade process if a transaction error happens
|
||||||
|
- search not displaying installed packages that are no longer available on the databases ( e.g: indicator-application )
|
||||||
- wrong dialog titles
|
- wrong dialog titles
|
||||||
|
|
||||||
|
|
||||||
## [0.9.0] - 2020-04-15
|
## [0.9.0] - 2020-04-15
|
||||||
### Features
|
### Features
|
||||||
- Backup
|
- Backup
|
||||||
|
|||||||
@@ -300,6 +300,15 @@ class ArchManager(SoftwareManager):
|
|||||||
def _search_in_repos_and_fill(self, words: str, disk_loader: DiskCacheLoader, read_installed: Thread, installed: dict, res: SearchResult):
|
def _search_in_repos_and_fill(self, words: str, disk_loader: DiskCacheLoader, read_installed: Thread, installed: dict, res: SearchResult):
|
||||||
repo_search = pacman.search(words)
|
repo_search = pacman.search(words)
|
||||||
|
|
||||||
|
if not repo_search: # the package may not be mapped on the databases anymore
|
||||||
|
pkgname = words.split(' ')[0].strip()
|
||||||
|
pkg_found = pacman.get_info_dict(pkgname, remote=False)
|
||||||
|
|
||||||
|
if pkg_found:
|
||||||
|
repo_search = {pkgname: {'version': pkg_found.get('version'),
|
||||||
|
'repository': 'unknown',
|
||||||
|
'description': pkg_found.get('description')}}
|
||||||
|
|
||||||
if repo_search:
|
if repo_search:
|
||||||
repo_pkgs = []
|
repo_pkgs = []
|
||||||
for name, data in repo_search.items():
|
for name, data in repo_search.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user