mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-09 02:41:06 +03:00
make repo_keyalias like a config option: leave it commented out
Before, the code relies on repo_keyalias being None, which does not feel conffile-like. Now, its commented out if its not set.
This commit is contained in:
parent
f1ae3d3fd0
commit
0950cdac09
2 changed files with 6 additions and 5 deletions
|
@ -627,7 +627,7 @@ def make_index(apps, apks, repodir, archive, categories):
|
|||
repoel.setAttribute("version", "12")
|
||||
repoel.setAttribute("timestamp", str(int(time.time())))
|
||||
|
||||
if config['repo_keyalias']:
|
||||
if 'repo_keyalias' in config:
|
||||
|
||||
# Generate a certificate fingerprint the same way keytool does it
|
||||
# (but with slightly different formatting)
|
||||
|
@ -783,7 +783,7 @@ def make_index(apps, apks, repodir, archive, categories):
|
|||
of.write(output)
|
||||
of.close()
|
||||
|
||||
if config['repo_keyalias'] is not None:
|
||||
if 'repo_keyalias' in config:
|
||||
|
||||
logging.info("Creating signed index.")
|
||||
logging.info("Key fingerprint: %s" % repo_pubkey_fingerprint)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue