From 5cb5b5b9cde623af6ad6cd3907e370a3991d06c0 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Wed, 22 Aug 2012 17:26:19 +0100 Subject: [PATCH] Support for Bitcoin field in metadata --- docs/fdroid.texi | 8 ++++++++ fdroidserver/common.py | 3 +++ 2 files changed, 11 insertions(+) diff --git a/docs/fdroid.texi b/docs/fdroid.texi index 3b6f6415..ac1a97d0 100644 --- a/docs/fdroid.texi +++ b/docs/fdroid.texi @@ -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 diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 2f6ae715..061d9ed0 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -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') -- 2.30.2