1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

Stop fdroid update saying it requires signing keys when it doesn't

Again!
This commit is contained in:
Ciaran Gultnieks 2015-06-04 15:00:31 +01:00
parent d0b5e60369
commit 368a6ae514

View File

@ -745,25 +745,26 @@ def make_index(apps, sortedids, apks, repodir, archive, categories):
repoel.setAttribute("timestamp", str(int(time.time()))) repoel.setAttribute("timestamp", str(int(time.time())))
nosigningkey = False nosigningkey = False
if 'repo_keyalias' not in config: if not options.nosign:
nosigningkey = True if 'repo_keyalias' not in config:
logging.critical("'repo_keyalias' not found in config.py!") nosigningkey = True
if 'keystore' not in config: logging.critical("'repo_keyalias' not found in config.py!")
nosigningkey = True if 'keystore' not in config:
logging.critical("'keystore' not found in config.py!") nosigningkey = True
if 'keystorepass' not in config and 'keystorepassfile' not in config: logging.critical("'keystore' not found in config.py!")
nosigningkey = True if 'keystorepass' not in config and 'keystorepassfile' not in config:
logging.critical("'keystorepass' not found in config.py!") nosigningkey = True
if 'keypass' not in config and 'keypassfile' not in config: logging.critical("'keystorepass' not found in config.py!")
nosigningkey = True if 'keypass' not in config and 'keypassfile' not in config:
logging.critical("'keypass' not found in config.py!") nosigningkey = True
if not os.path.exists(config['keystore']): logging.critical("'keypass' not found in config.py!")
nosigningkey = True if not os.path.exists(config['keystore']):
logging.critical("'" + config['keystore'] + "' does not exist!") nosigningkey = True
if nosigningkey: logging.critical("'" + config['keystore'] + "' does not exist!")
logging.warning("`fdroid update` requires a signing key, you can create one using:") if nosigningkey:
logging.warning("\tfdroid update --create-key") logging.warning("`fdroid update` requires a signing key, you can create one using:")
sys.exit(1) logging.warning("\tfdroid update --create-key")
sys.exit(1)
repoel.setAttribute("pubkey", extract_pubkey()) repoel.setAttribute("pubkey", extract_pubkey())
root.appendChild(repoel) root.appendChild(repoel)