mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02:00
Support for Bitcoin field in metadata
This commit is contained in:
parent
1df48f7964
commit
5cb5b5b9cd
@ -425,6 +425,7 @@ The following sections describe the fields recognised within the file.
|
||||
* Issue Tracker::
|
||||
* Donate::
|
||||
* FlattrID::
|
||||
* Bitcoin::
|
||||
* Summary::
|
||||
* Description::
|
||||
* Repo Type::
|
||||
@ -559,6 +560,13 @@ 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 Bitcoin
|
||||
@section Bitcoin
|
||||
|
||||
@cindex Bitcoin
|
||||
|
||||
A bitcoin address for donating to the project.
|
||||
|
||||
@node Summary
|
||||
@section Summary
|
||||
|
||||
|
@ -409,6 +409,7 @@ def parse_metadata(metafile, **kw):
|
||||
thisinfo['Issue Tracker'] = ''
|
||||
thisinfo['Donate'] = None
|
||||
thisinfo['FlattrID'] = None
|
||||
thisinfo['Bitcoin'] = None
|
||||
thisinfo['Disabled'] = None
|
||||
thisinfo['AntiFeatures'] = None
|
||||
thisinfo['Update Check Mode'] = 'Market'
|
||||
@ -547,6 +548,8 @@ def write_metadata(dest, app):
|
||||
writefield('Donate')
|
||||
if app['FlattrID']:
|
||||
writefield('FlattrID')
|
||||
if app['Bitcoin']:
|
||||
writefield('Bitcoin')
|
||||
mf.write('\n')
|
||||
if app['Name']:
|
||||
writefield('Name')
|
||||
|
Loading…
Reference in New Issue
Block a user