chiark / gitweb /
if using crypto smartcard, remind user to plug it in
authorHans-Christoph Steiner <hans@eds.org>
Thu, 17 Apr 2014 18:39:47 +0000 (14:39 -0400)
committerHans-Christoph Steiner <hans@eds.org>
Wed, 23 Apr 2014 02:59:27 +0000 (22:59 -0400)
fdroidserver/update.py

index b2d490b2581e847898765307277debe005bc80ee..53c999a2f1194cfc1a7e7bb608e918ed7391a26f 100644 (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)