Bundlebuilder - accept repository for AppStream metadata

AppStream metadata generator was looking for key repository_url, but
Wiki and common usage has adopted repository.
This commit is contained in:
James Cameron 2017-07-19 17:29:35 +10:00
parent ae62708a7f
commit 72a34528f2

View File

@ -463,6 +463,9 @@ class Installer(Packager):
if info.has_option('Activity', 'repository_url'): if info.has_option('Activity', 'repository_url'):
ET.SubElement(root, 'url', type='bugtracker').text = \ ET.SubElement(root, 'url', type='bugtracker').text = \
info.get('Activity', 'repository_url') info.get('Activity', 'repository_url')
elif info.has_option('Activity', 'repository'):
ET.SubElement(root, 'url', type='bugtracker').text = \
info.get('Activity', 'repository')
path = os.path.join(prefix, 'share', 'metainfo', path = os.path.join(prefix, 'share', 'metainfo',
self.config.bundle_id + '.appdata.xml') self.config.bundle_id + '.appdata.xml')