Fix AppStream metadata warning

* wrong pydoc module reference,

* was too verbose.
This commit is contained in:
James Cameron 2019-08-28 13:35:56 +10:00
parent 6e517aa3c7
commit 7b85b807b2

View File

@ -366,12 +366,8 @@ class Installer(Packager):
'description'] 'description']
for name in required_fields: for name in required_fields:
if not info.has_option('Activity', name): if not info.has_option('Activity', name):
print('[WARNING] Activity needs more metadata for AppStream ' print('[WARNING] missing AppStream metadata, '
'file') 'see `pydoc sugar3.bundle`')
print(' Without an AppStream file, the activity will not '
'show in software stores')
print(' Please `pydoc sugar3.activity.bundlebuilder` for '
'more info')
return return
# See https://www.freedesktop.org/software/appstream/docs/ # See https://www.freedesktop.org/software/appstream/docs/