mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 15:02:51 +03:00
Add support for Litecoin in the server
This commit is contained in:
parent
1b291a58d7
commit
47cad8fca7
3 changed files with 15 additions and 1 deletions
|
@ -463,6 +463,7 @@ The following sections describe the fields recognised within the file.
|
||||||
* Donate::
|
* Donate::
|
||||||
* FlattrID::
|
* FlattrID::
|
||||||
* Bitcoin::
|
* Bitcoin::
|
||||||
|
* Litecoin::
|
||||||
* Summary::
|
* Summary::
|
||||||
* Description::
|
* Description::
|
||||||
* Repo Type::
|
* Repo Type::
|
||||||
|
@ -627,6 +628,13 @@ directly to the page to donate to the project.
|
||||||
|
|
||||||
A bitcoin address for donating 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
|
@node Summary
|
||||||
@section Summary
|
@section Summary
|
||||||
|
|
||||||
|
|
|
@ -482,6 +482,7 @@ def parse_metadata(metafile, **kw):
|
||||||
thisinfo['Donate'] = None
|
thisinfo['Donate'] = None
|
||||||
thisinfo['FlattrID'] = None
|
thisinfo['FlattrID'] = None
|
||||||
thisinfo['Bitcoin'] = None
|
thisinfo['Bitcoin'] = None
|
||||||
|
thisinfo['Litecoin'] = None
|
||||||
thisinfo['Disabled'] = None
|
thisinfo['Disabled'] = None
|
||||||
thisinfo['AntiFeatures'] = None
|
thisinfo['AntiFeatures'] = None
|
||||||
thisinfo['Update Check Mode'] = 'None'
|
thisinfo['Update Check Mode'] = 'None'
|
||||||
|
@ -624,6 +625,8 @@ def write_metadata(dest, app):
|
||||||
writefield('FlattrID')
|
writefield('FlattrID')
|
||||||
if app['Bitcoin']:
|
if app['Bitcoin']:
|
||||||
writefield('Bitcoin')
|
writefield('Bitcoin')
|
||||||
|
if app['Litecoin']:
|
||||||
|
writefield('Litecoin')
|
||||||
mf.write('\n')
|
mf.write('\n')
|
||||||
if app['Name']:
|
if app['Name']:
|
||||||
writefield('Name')
|
writefield('Name')
|
||||||
|
|
|
@ -55,7 +55,7 @@ def update_wiki(apps, apks, verbose=False):
|
||||||
wikidata += '{{Disabled|' + app['Disabled'] + '}}\n'
|
wikidata += '{{Disabled|' + app['Disabled'] + '}}\n'
|
||||||
if app['AntiFeatures']:
|
if app['AntiFeatures']:
|
||||||
wikidata += '{{AntiFeatures|' + app['AntiFeatures'] + '}}\n'
|
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['id'],
|
||||||
app['Name'],
|
app['Name'],
|
||||||
time.strftime('%Y-%m-%d', app['added']) if 'added' in app else '',
|
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['Donate'],
|
||||||
app['FlattrID'],
|
app['FlattrID'],
|
||||||
app['Bitcoin'],
|
app['Bitcoin'],
|
||||||
|
app['Litecoin'],
|
||||||
app['License'],
|
app['License'],
|
||||||
app.get('Requires Root', 'No'))
|
app.get('Requires Root', 'No'))
|
||||||
|
|
||||||
|
@ -535,6 +536,8 @@ def make_index(apps, apks, repodir, archive, categories):
|
||||||
addElement('donate', app['Donate'], doc, apel)
|
addElement('donate', app['Donate'], doc, apel)
|
||||||
if app['Bitcoin'] != None:
|
if app['Bitcoin'] != None:
|
||||||
addElement('bitcoin', app['Bitcoin'], doc, apel)
|
addElement('bitcoin', app['Bitcoin'], doc, apel)
|
||||||
|
if app['Litecoin'] != None:
|
||||||
|
addElement('litecoin', app['Litecoin'], doc, apel)
|
||||||
if app['FlattrID'] != None:
|
if app['FlattrID'] != None:
|
||||||
addElement('flattr', app['FlattrID'], doc, apel)
|
addElement('flattr', app['FlattrID'], doc, apel)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue