chiark / gitweb /
Add support for Litecoin in the server
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 12 Oct 2013 22:03:11 +0000 (00:03 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Sat, 12 Oct 2013 22:03:11 +0000 (00:03 +0200)
docs/fdroid.texi
fdroidserver/common.py
fdroidserver/update.py

index ab30456360664a38777c6e31dc8e1bc7ee9662c5..005fd70176f526fc4eea0ff3053d8979796d2981 100644 (file)
@@ -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
 
index 93166a7867802a5223db1689ef6728b062fdbb14..38791d5a67e54082401c7ab95bac0237a3bfdd6f 100644 (file)
@@ -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')
index 6bb7de28615610384f9132ece9868581372c91c5..c20071664abdd8fcc1d4347139ae38b81b1e8b37 100644 (file)
@@ -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)