From fec84288be7fbafa8a4f417d72cd87117f67ceee Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sat, 27 Oct 2018 18:15:29 +0300 Subject: [PATCH] gpg: --homedir should come before --list-secret-keys --- libagent/gpg/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libagent/gpg/__init__.py b/libagent/gpg/__init__.py index de246da..ee19836 100644 --- a/libagent/gpg/__init__.py +++ b/libagent/gpg/__init__.py @@ -195,8 +195,8 @@ fi '--import-ownertrust', f.name])) # Load agent and make sure it responds with the new identity - check_call(keyring.gpg_command(['--list-secret-keys', args.user_id, - '--homedir', homedir])) + check_call(keyring.gpg_command(['--homedir', homedir, + '--list-secret-keys', args.user_id])) def run_unlock(device_type, args):