Bundlebuilder - accept repository for AppStream metadata

AppStream metadata generator was looking for key repository_url, but
Wiki and common usage has adopted repository.
master
James Cameron 7 years ago
parent ae62708a7f
commit 72a34528f2

@ -463,6 +463,9 @@ class Installer(Packager):
if info.has_option('Activity', 'repository_url'):
ET.SubElement(root, 'url', type='bugtracker').text = \
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',
self.config.bundle_id + '.appdata.xml')

Loading…
Cancel
Save