mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02:00
Add support for Litecoin in the server
This commit is contained in:
parent
1b291a58d7
commit
47cad8fca7
@ -463,6 +463,7 @@ The following sections describe the fields recognised within the file.
|
||||
* Donate::
|
||||
* FlattrID::
|
||||
* Bitcoin::
|
||||
* Litecoin::
|
||||
* Summary::
|
||||
* Description::
|
||||
* Repo Type::
|
||||
@ -627,6 +628,13 @@ directly to the page to donate to the project.
|
||||
|
||||
A bitcoin address for donating to the project.
|
||||
|
||||
@node Litecoin
|
||||
@section Litecoin
|
||||
|
||||
@cindex Litecoin
|
||||
|
||||
A litecoin address for donating to the project.
|
||||
|
||||
@node Summary
|
||||
@section Summary
|
||||
|
||||
|
@ -482,6 +482,7 @@ def parse_metadata(metafile, **kw):
|
||||
thisinfo['Donate'] = None
|
||||
thisinfo['FlattrID'] = None
|
||||
thisinfo['Bitcoin'] = None
|
||||
thisinfo['Litecoin'] = None
|
||||
thisinfo['Disabled'] = None
|
||||
thisinfo['AntiFeatures'] = None
|
||||
thisinfo['Update Check Mode'] = 'None'
|
||||
@ -624,6 +625,8 @@ def write_metadata(dest, app):
|
||||
writefield('FlattrID')
|
||||
if app['Bitcoin']:
|
||||
writefield('Bitcoin')
|
||||
if app['Litecoin']:
|
||||
writefield('Litecoin')
|
||||
mf.write('\n')
|
||||
if app['Name']:
|
||||
writefield('Name')
|
||||
|
@ -55,7 +55,7 @@ def update_wiki(apps, apks, verbose=False):
|
||||
wikidata += '{{Disabled|' + app['Disabled'] + '}}\n'
|
||||
if app['AntiFeatures']:
|
||||
wikidata += '{{AntiFeatures|' + app['AntiFeatures'] + '}}\n'
|
||||
wikidata += '{{App|id=%s|name=%s|added=%s|lastupdated=%s|source=%s|tracker=%s|web=%s|donate=%s|flattr=%s|bitcoin=%s|license=%s|root=%s}}\n'%(
|
||||
wikidata += '{{App|id=%s|name=%s|added=%s|lastupdated=%s|source=%s|tracker=%s|web=%s|donate=%s|flattr=%s|bitcoin=%s|litecoin=%s|license=%s|root=%s}}\n'%(
|
||||
app['id'],
|
||||
app['Name'],
|
||||
time.strftime('%Y-%m-%d', app['added']) if 'added' in app else '',
|
||||
@ -66,6 +66,7 @@ def update_wiki(apps, apks, verbose=False):
|
||||
app['Donate'],
|
||||
app['FlattrID'],
|
||||
app['Bitcoin'],
|
||||
app['Litecoin'],
|
||||
app['License'],
|
||||
app.get('Requires Root', 'No'))
|
||||
|
||||
@ -535,6 +536,8 @@ def make_index(apps, apks, repodir, archive, categories):
|
||||
addElement('donate', app['Donate'], doc, apel)
|
||||
if app['Bitcoin'] != None:
|
||||
addElement('bitcoin', app['Bitcoin'], doc, apel)
|
||||
if app['Litecoin'] != None:
|
||||
addElement('litecoin', app['Litecoin'], doc, apel)
|
||||
if app['FlattrID'] != None:
|
||||
addElement('flattr', app['FlattrID'], doc, apel)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user