[arch] improvement: displaying the 'executable' field on the info dialog if the package is an application

This commit is contained in:
Vinicius Moreira
2022-02-24 09:48:10 -03:00
parent fa972d2ea0
commit 6bc8cc91c2
11 changed files with 19 additions and 2 deletions

View File

@@ -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: