From 2e0cfc8088b6c1c2e89e60adfe471f818243b69b Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sun, 8 Apr 2018 16:20:55 +0300 Subject: [PATCH] gpg: fail if new identity is missing --- libagent/gpg/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libagent/gpg/__init__.py b/libagent/gpg/__init__.py index 60fbb9b..2a37df8 100644 --- a/libagent/gpg/__init__.py +++ b/libagent/gpg/__init__.py @@ -191,7 +191,8 @@ fi '--import-ownertrust', f.name]) # 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):