From ad6985cb4041de5192edcd8a14e4cdd7c084572b Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 20 Aug 2020 14:38:42 +0200 Subject: [PATCH] update: allow --nosign to work with only repo_pubkey set repo_pubkey is required for `fdroid update --nosign`, but repo_keyalias is not. For regular signing, the opposite true. --- fdroidserver/index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fdroidserver/index.py b/fdroidserver/index.py index 7e76f299..6d247141 100644 --- a/fdroidserver/index.py +++ b/fdroidserver/index.py @@ -566,7 +566,8 @@ def make_v0(apps, apks, repodir, repodict, requestsdict, fdroid_signing_key_fing with open(os.path.join(repodir, 'index.xml'), 'wb') as f: f.write(output) - if 'repo_keyalias' in common.config: + if 'repo_keyalias' in common.config \ + or (common.options.nosign and 'repo_pubkey' in common.config): if common.options.nosign: logging.info(_("Creating unsigned index in preparation for signing"))