1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

if using crypto smartcard, remind user to plug it in

This commit is contained in:
Hans-Christoph Steiner 2014-04-17 14:39:47 -04:00
parent a7d1d9a54d
commit 1ca7949bb1

View File

@ -645,7 +645,10 @@ def make_index(apps, apks, repodir, archive, categories):
'-storepass:file', config['keystorepassfile']]
+ config['smartcardoptions'])
if p.returncode != 0:
logging.critical("Failed to get repo pubkey")
msg = "Failed to get repo pubkey!"
if config['keystore'] == 'NONE':
msg += ' Is your crypto smartcard plugged in?'
logging.critical(msg)
sys.exit(1)
global repo_pubkey_fingerprint
repo_pubkey_fingerprint = cert_fingerprint(p.stdout)