mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Support for Bitcoin field in metadata
This commit is contained in:
parent
1df48f7964
commit
5cb5b5b9cd
2 changed files with 11 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue