From ccc2174775cea8e830a3b7d9fb9eb412ddae0d6c Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Wed, 25 Apr 2018 00:16:27 +0300 Subject: [PATCH] gpg: allow more verbose output during GnuPG pubkey import --- 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 8e3ed90..b881b58 100644 --- a/libagent/gpg/__init__.py +++ b/libagent/gpg/__init__.py @@ -180,7 +180,8 @@ fi pubkey = write_file(os.path.join(homedir, 'pubkey.asc'), export_public_key(device_type, args)) gpg_binary = keyring.get_gnupg_binary() - check_call([gpg_binary, '--homedir', homedir, '--quiet', + verbosity = ('-' + ('v' * args.verbose)) if args.verbose else '--quiet' + check_call([gpg_binary, '--homedir', homedir, verbosity, '--import', pubkey.name]) # Make new GPG identity with "ultimate" trust (via its fingerprint)