mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
[arch] improvement: displaying the 'executable' field on the info dialog if the package is an application
This commit is contained in:
@@ -1561,9 +1561,14 @@ class ArchManager(SoftwareManager):
|
||||
|
||||
def get_info(self, pkg: ArchPackage) -> dict:
|
||||
if pkg.repository == 'aur':
|
||||
return self._get_info_aur_pkg(pkg)
|
||||
info = self._get_info_aur_pkg(pkg)
|
||||
else:
|
||||
return self._get_info_repo_pkg(pkg)
|
||||
info = self._get_info_repo_pkg(pkg)
|
||||
|
||||
if pkg.is_application():
|
||||
info['04_exec'] = pkg.command
|
||||
|
||||
return info
|
||||
|
||||
def _get_history_aur_pkg(self, pkg: ArchPackage) -> PackageHistory:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user