mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 03:34:15 +02:00
[gen.appimage] fix: search is not matching manually installed applications
This commit is contained in:
@@ -11,6 +11,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- adding generic file filter extension (.*) since some desktop environments filters are case sensitive (https://github.com/vinifmor/bauh/issues/185)[#185]
|
- adding generic file filter extension (.*) since some desktop environments filters are case sensitive (https://github.com/vinifmor/bauh/issues/185)[#185]
|
||||||
- generating a default **.desktop** file based on the installation form for AppImage files that provide empty desktop entries (https://github.com/vinifmor/bauh/issues/186)[#186]
|
- generating a default **.desktop** file based on the installation form for AppImage files that provide empty desktop entries (https://github.com/vinifmor/bauh/issues/186)[#186]
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
- AppImage
|
||||||
|
- search: not matching manually installed applications
|
||||||
|
|
||||||
|
|
||||||
## [0.9.18] 2021-06-18
|
## [0.9.18] 2021-06-18
|
||||||
### Fixes
|
### Fixes
|
||||||
- Arch
|
- Arch
|
||||||
|
|||||||
@@ -214,27 +214,30 @@ class AppImageManager(SoftwareManager):
|
|||||||
except:
|
except:
|
||||||
self.logger.error("An exception happened while querying the 'apps' database")
|
self.logger.error("An exception happened while querying the 'apps' database")
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
apps_conn.close()
|
|
||||||
return SearchResult.empty()
|
try:
|
||||||
|
installed = self.read_installed(connection=apps_conn, disk_loader=disk_loader, limit=limit, only_apps=False, pkg_types=None, internet_available=True).installed
|
||||||
|
except:
|
||||||
|
installed = None
|
||||||
|
|
||||||
installed_found = []
|
installed_found = []
|
||||||
|
|
||||||
if not_installed:
|
if installed:
|
||||||
installed = self.read_installed(disk_loader=disk_loader, limit=limit,
|
lower_words = words.lower()
|
||||||
only_apps=False,
|
for appim in installed:
|
||||||
pkg_types=None,
|
found = False
|
||||||
connection=apps_conn,
|
|
||||||
internet_available=True).installed
|
|
||||||
if installed:
|
|
||||||
for appim in installed:
|
|
||||||
key = self._gen_app_key(appim)
|
|
||||||
|
|
||||||
|
if not_installed and found_map:
|
||||||
|
key = self._gen_app_key(appim)
|
||||||
new_found = found_map.get(key)
|
new_found = found_map.get(key)
|
||||||
|
|
||||||
if new_found:
|
if new_found:
|
||||||
del not_installed[new_found['idx']]
|
del not_installed[new_found['idx']]
|
||||||
installed_found.append(appim)
|
installed_found.append(appim)
|
||||||
|
found = True
|
||||||
|
|
||||||
|
if not found and lower_words in appim.name.lower() or (appim.description and lower_words in appim.description.lower()):
|
||||||
|
installed_found.append(appim)
|
||||||
try:
|
try:
|
||||||
apps_conn.close()
|
apps_conn.close()
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user