From 676265b2aa65add87c6609b7c3b088f5f6ab91fc Mon Sep 17 00:00:00 2001 From: r00t Date: Sat, 6 May 2017 06:53:28 -0400 Subject: [PATCH] fixing bug in gpg signing --- bdisk/bGPG.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bdisk/bGPG.py b/bdisk/bGPG.py index 34d39bf..aa6f2b4 100755 --- a/bdisk/bGPG.py +++ b/bdisk/bGPG.py @@ -52,13 +52,13 @@ def genGPG(conf): s)) if mykey: try: - privkey = gpg.get_key(mykey, True) + pkeys.append(gpg.get_key(mykey, True)) except: exit('{0}: ERROR: You specified using {1} but we have no secret key for that ID!'.format( datetime.datetime.now(), mykey)) else: - for key in gpg.keylist(None,True): + for key in gpg.keylist(None, True): if key.can_sign: pkeys.append(key) break