mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 15:02:51 +03:00
Support for FlattrID field in metadata
This commit is contained in:
parent
5cef97e91c
commit
7377453360
2 changed files with 13 additions and 0 deletions
|
@ -410,6 +410,7 @@ The following sections describe the fields recognised within the file.
|
||||||
* Source Code::
|
* Source Code::
|
||||||
* Issue Tracker::
|
* Issue Tracker::
|
||||||
* Donate::
|
* Donate::
|
||||||
|
* FlattrID::
|
||||||
* Summary::
|
* Summary::
|
||||||
* Description::
|
* Description::
|
||||||
* Repo Type::
|
* Repo Type::
|
||||||
|
@ -524,6 +525,15 @@ applications have one.
|
||||||
The URL to donate to the project. This could be the project's donate page
|
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.
|
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
|
@node Summary
|
||||||
@section Summary
|
@section Summary
|
||||||
|
|
||||||
|
|
|
@ -362,6 +362,7 @@ def parse_metadata(metafile, **kw):
|
||||||
thisinfo['Source Code'] = ''
|
thisinfo['Source Code'] = ''
|
||||||
thisinfo['Issue Tracker'] = ''
|
thisinfo['Issue Tracker'] = ''
|
||||||
thisinfo['Donate'] = None
|
thisinfo['Donate'] = None
|
||||||
|
thisinfo['FlattrID'] = None
|
||||||
thisinfo['Disabled'] = None
|
thisinfo['Disabled'] = None
|
||||||
thisinfo['AntiFeatures'] = None
|
thisinfo['AntiFeatures'] = None
|
||||||
thisinfo['Update Check Mode'] = 'Market'
|
thisinfo['Update Check Mode'] = 'Market'
|
||||||
|
@ -498,6 +499,8 @@ def write_metadata(dest, app):
|
||||||
writefield('Issue Tracker')
|
writefield('Issue Tracker')
|
||||||
if app['Donate']:
|
if app['Donate']:
|
||||||
writefield('Donate')
|
writefield('Donate')
|
||||||
|
if app['FlattrID']:
|
||||||
|
writefield('FlattrID')
|
||||||
mf.write('\n')
|
mf.write('\n')
|
||||||
if app['Name']:
|
if app['Name']:
|
||||||
writefield('Name')
|
writefield('Name')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue