Before, the code relies on repo_keyalias being None, which does not feel
conffile-like. Now, its commented out if its not set.
"""
-#The key (from the keystore defined below) to be used for signing the
-#repository itself. Can be None for an unsigned repository.
-repo_keyalias = None
+# The key (from the keystore defined below) to be used for signing the
+# repository itself. This is the same name you would give to keytool or
+# jarsigner using -alias. (Not needed in an unsigned repository).
+#repo_keyalias = "fdroidrepo"
#The keystore to use for release keys when building. This needs to be
#somewhere safe and secure, and backed up!
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)
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)