chiark / gitweb /
Support for Bitcoin field in metadata
authorCiaran Gultnieks <ciaran@ciarang.com>
Wed, 22 Aug 2012 16:26:19 +0000 (17:26 +0100)
committerCiaran Gultnieks <ciaran@ciarang.com>
Wed, 22 Aug 2012 16:26:19 +0000 (17:26 +0100)
docs/fdroid.texi
fdroidserver/common.py

index 3b6f6415d7d7dbbf4aae0f883ce7cfd93114e320..ac1a97d0d5ea14eb58fea321850d1558414a17c9 100644 (file)
@@ -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
 
index 2f6ae7158fef7799aa9fa6f1193fe29bef0bb47b..061d9ed087ec38fe63e6d9de84f1f420428af328 100644 (file)
@@ -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')