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:
parent
ae62708a7f
commit
72a34528f2
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user