From 0febe11eb023710d16d0527d6fe0efa666f0d325 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Fri, 5 Apr 2013 17:02:02 +0100 Subject: [PATCH] Make it easier to reference another app's signature --- config.sample.py | 3 +++ fdroidserver/publish.py | 4 ++++ 2 files changed, 7 insertions(+) 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)