Bundlebuilder: relabel repository url as bugtracker

Many activities already have the repository url pointing to their GitHub
page - which also serves as a bug tracker for many of the projects.  The
repository url is not part of the spec, but the bug tracker url is.
This commit is contained in:
Sam Parkinson 2016-07-16 07:55:57 +10:00
parent 9b5ed7e80c
commit 2f9ae6ef51
No known key found for this signature in database
GPG Key ID: 34E268B2FA2F8B13

View File

@ -461,7 +461,7 @@ class Installer(Packager):
ET.SubElement(root, 'url', type='homepage').text = \ ET.SubElement(root, 'url', type='homepage').text = \
info.get('Activity', 'url') info.get('Activity', 'url')
if info.has_option('Activity', 'repository_url'): if info.has_option('Activity', 'repository_url'):
ET.SubElement(root, 'url', type='repository').text = \ ET.SubElement(root, 'url', type='bugtracker').text = \
info.get('Activity', 'repository_url') info.get('Activity', 'repository_url')
path = os.path.join(prefix, 'share', 'metainfo', path = os.path.join(prefix, 'share', 'metainfo',