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.
This commit is contained in:
Hans-Christoph Steiner committed 2020-09-17 15:25:56 +02:00
1 parent af4a2ab736
commit ad6985cb40
1 file changed
+2 -1
+2 -1
View File
@@ -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"))