diff --git a/CHANGELOG.md b/CHANGELOG.md index 6676c69b..03d82c67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,9 +11,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Fixes - Arch - 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 - ## [0.9.0] - 2020-04-15 ### Features - Backup diff --git a/bauh/gems/arch/controller.py b/bauh/gems/arch/controller.py index ef4ed038..19b345ea 100644 --- a/bauh/gems/arch/controller.py +++ b/bauh/gems/arch/controller.py @@ -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): 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: repo_pkgs = [] for name, data in repo_search.items():