diff --git a/docs/fdroid.texi b/docs/fdroid.texi index ab304563..005fd701 100644 --- a/docs/fdroid.texi +++ b/docs/fdroid.texi @@ -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 diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 93166a78..38791d5a 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -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') diff --git a/fdroidserver/update.py b/fdroidserver/update.py index 6bb7de28..c2007166 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -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)