gpg: fail if new identity is missing

This commit is contained in:
Roman Zeyde 2018-04-08 16:20:55 +03:00
parent 18f33f8a08
commit 2e0cfc8088
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

View File

@ -191,7 +191,8 @@ fi
'--import-ownertrust', f.name]) '--import-ownertrust', f.name])
# Load agent and make sure it responds with the new identity # Load agent and make sure it responds with the new identity
check_call([gpg_binary, '--list-secret-keys'], env={'GNUPGHOME': homedir}) check_call([gpg_binary, '--list-secret-keys', args.user_id],
env={'GNUPGHOME': homedir})
def run_unlock(device_type, args): def run_unlock(device_type, args):