mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 21:44:16 +02:00
[arch] improvement: displaying 'description' and 'version' as primary fields for repository packages (info)
This commit is contained in:
@@ -8,7 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
|
||||
### Improvements
|
||||
- Arch
|
||||
- info dialog: displaying the "executable" field if the package is recognized as an application
|
||||
- info dialog:
|
||||
- displaying the "executable" field if the package is recognized as an application
|
||||
- displaying "description" and "version" as primary fields for repository packages
|
||||
- removing the "%U" parameter before launching applications to prevent error messages
|
||||
- minor code refactoring
|
||||
|
||||
|
||||
@@ -1557,6 +1557,13 @@ class ArchManager(SoftwareManager):
|
||||
if pkg.installed:
|
||||
info['installed files'] = pacman.list_installed_files(pkg.name)
|
||||
|
||||
for attr in ('version', 'description'):
|
||||
val = info.get(attr)
|
||||
|
||||
if val is not None:
|
||||
info[f'03_{attr}'] = val
|
||||
del info[attr]
|
||||
|
||||
return info
|
||||
|
||||
def get_info(self, pkg: ArchPackage) -> dict:
|
||||
|
||||
Reference in New Issue
Block a user