mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02:00
Support for FlattrID field in metadata
This commit is contained in:
parent
5cef97e91c
commit
7377453360
@ -410,6 +410,7 @@ The following sections describe the fields recognised within the file.
|
||||
* Source Code::
|
||||
* Issue Tracker::
|
||||
* Donate::
|
||||
* FlattrID::
|
||||
* Summary::
|
||||
* Description::
|
||||
* Repo Type::
|
||||
@ -524,6 +525,15 @@ applications have one.
|
||||
The URL to donate to the project. This could be the project's donate page
|
||||
if it has one, or perhaps even a direct PayPal link.
|
||||
|
||||
@node FlattrID
|
||||
@section FlattrID
|
||||
|
||||
@cindex FlattrID
|
||||
|
||||
The project's Flattr (http://flattr.com) ID, if it has one. This should be
|
||||
a numeric ID, such that (for example) https://flattr.com/thing/xxxx leads
|
||||
directly to the page to donate to the project.
|
||||
|
||||
@node Summary
|
||||
@section Summary
|
||||
|
||||
|
@ -362,6 +362,7 @@ def parse_metadata(metafile, **kw):
|
||||
thisinfo['Source Code'] = ''
|
||||
thisinfo['Issue Tracker'] = ''
|
||||
thisinfo['Donate'] = None
|
||||
thisinfo['FlattrID'] = None
|
||||
thisinfo['Disabled'] = None
|
||||
thisinfo['AntiFeatures'] = None
|
||||
thisinfo['Update Check Mode'] = 'Market'
|
||||
@ -498,6 +499,8 @@ def write_metadata(dest, app):
|
||||
writefield('Issue Tracker')
|
||||
if app['Donate']:
|
||||
writefield('Donate')
|
||||
if app['FlattrID']:
|
||||
writefield('FlattrID')
|
||||
mf.write('\n')
|
||||
if app['Name']:
|
||||
writefield('Name')
|
||||
|
Loading…
Reference in New Issue
Block a user