if using crypto smartcard, remind user to plug it in

This commit is contained in:
Hans-Christoph Steiner committed 2014-04-22 22:59:27 -04:00
1 parent a7d1d9a54d
commit 1ca7949bb1
1 file changed
+4 -1
+4 -1
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)