[appimage] info: displaying 'unknown' when there is no mapped license

This commit is contained in:
Vinicius Moreira
2023-12-01 09:55:48 -03:00
parent cbb55151bf
commit d47e55fd7e
2 changed files with 5 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- new **verified** filter for the management table - new **verified** filter for the management table
### Improvements ### Improvements
- AppImage
- info window: displaying "unknown" when there is no mapped license
- Arch - Arch
- adding the AUR's URL on the package information dialog [#339](https://github.com/vinifmor/bauh/issues/339) - adding the AUR's URL on the package information dialog [#339](https://github.com/vinifmor/bauh/issues/339)
- General - General

View File

@@ -480,6 +480,9 @@ class AppImageManager(SoftwareManager, SettingsController):
if data.get('symlink') and not os.path.islink(data['symlink']): if data.get('symlink') and not os.path.islink(data['symlink']):
del data['symlink'] del data['symlink']
if not data.get("license"):
data["license"] = self.i18n["unknown"].lower()
return data return data
def _sort_release(self, rel: tuple): def _sort_release(self, rel: tuple):