From: Ciaran Gultnieks Date: Fri, 5 Apr 2013 16:02:02 +0000 (+0100) Subject: Make it easier to reference another app's signature X-Git-Tag: 0.1~648^2~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0febe11eb023710d16d0527d6fe0efa666f0d325;p=fdroidserver.git Make it easier to reference another app's signature --- diff --git a/config.sample.py b/config.sample.py index f0e0369f..e81ab5f1 100644 --- a/config.sample.py +++ b/config.sample.py @@ -41,6 +41,9 @@ keydname = "CN=Birdman, OU=Cell, O=Alcatraz, L=Alcatraz, S=California, C=US" #for particular applications. Normally, just leave it empty. keyaliases = {} keyaliases['com.example.app'] = 'example' +#You can also force an app to use the same key alias as another one, using +#the @ prefix. +keyaliases['com.example.another.plugin'] = '@com.example.another' #The ssh path to the server's public web root directory. This is used for #uploading data, etc. diff --git a/fdroidserver/publish.py b/fdroidserver/publish.py index c0791d27..dce4d497 100644 --- a/fdroidserver/publish.py +++ b/fdroidserver/publish.py @@ -84,6 +84,10 @@ def main(): if appid in keyaliases: # For this particular app, the key alias is overridden... keyalias = keyaliases[appid] + if keyalias.startswith('@'): + m = md5.new() + m.update(keyalias[1:]) + keyalias = m.hexdigest()[:8] else: m = md5.new() m.update(appid)