chiark / gitweb /
Support for FlattrID field in metadata
authorCiaran Gultnieks <ciaran@ciarang.com>
Thu, 28 Jun 2012 11:51:48 +0000 (12:51 +0100)
committerCiaran Gultnieks <ciaran@ciarang.com>
Thu, 28 Jun 2012 11:51:48 +0000 (12:51 +0100)
docs/fdroid.texi
fdroidserver/common.py

index 24496bcde5128015a62bc5893ebdcf669b8ae80b..1d123590e1e0f93dcf8c327b57c04957df69daa6 100644 (file)
@@ -410,6 +410,7 @@ The following sections describe the fields recognised within the file.
 * Source Code::
 * Issue Tracker::
 * Donate::
+* FlattrID::
 * Summary::
 * Description::
 * Repo Type::
@@ -524,6 +525,15 @@ applications have one.
 The URL to donate to the project. This could be the project's donate page
 if it has one, or perhaps even a direct PayPal link.
 
+@node FlattrID
+@section FlattrID
+
+@cindex FlattrID
+
+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 Summary
 @section Summary
 
index 2a7024d1178d9e378991a3252c8246d65f3133ee..f64d2dd383aea2f1f2b96be75d211cd4b22d74ec 100644 (file)
@@ -362,6 +362,7 @@ def parse_metadata(metafile, **kw):
     thisinfo['Source Code'] = ''
     thisinfo['Issue Tracker'] = ''
     thisinfo['Donate'] = None
+    thisinfo['FlattrID'] = None
     thisinfo['Disabled'] = None
     thisinfo['AntiFeatures'] = None
     thisinfo['Update Check Mode'] = 'Market'
@@ -498,6 +499,8 @@ def write_metadata(dest, app):
     writefield('Issue Tracker')
     if app['Donate']:
         writefield('Donate')
+    if app['FlattrID']:
+        writefield('FlattrID')
     mf.write('\n')
     if app['Name']:
         writefield('Name')