[snap] not showing 'License' in the info window if it defined as 'unset'

This commit is contained in:
Vinicius Moreira
2019-10-29 11:42:16 -03:00
parent 96169d5bad
commit 7624933888
4 changed files with 9 additions and 3 deletions

View File

@@ -140,6 +140,9 @@ class SnapManager(SoftwareManager):
if info.get('commands'):
info['commands'] = ' '.join(info['commands'])
if info.get('license') and info['license'] == 'unset':
del info['license']
return info
def get_history(self, pkg: SnapApplication) -> PackageHistory: