From c37261f1fdca7882af62d551790429c10653b9cc Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Fri, 21 Jun 2013 18:42:03 -0700 Subject: [PATCH] Add keyring parameter to GkeysGPG class --- gkeys/lib.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gkeys/lib.py b/gkeys/lib.py index cb6fb96..bbd126c 100644 --- a/gkeys/lib.py +++ b/gkeys/lib.py @@ -18,19 +18,23 @@ with gentoo-keys specific convienience functions. from pygpg.gpg import GPG +from gkeys.log import logger class GkeysGPG(GPG): '''Gentoo-keys primary gpg class''' - def __init__(self, config): + def __init__(self, config, keyring): '''class init function @param config: GKeysConfig config instance to use + @param keyring: string, the path to the keyring to be used + for all operations. ''' GPG.__init__(self, config) self.config = config + self.keyring = keyring def add_key(self, gkey): @@ -38,6 +42,7 @@ class GkeysGPG(GPG): @param gkey: GKEY namedtuple with (name, keyid/longkeyid, fingerprint) ''' + pass -- 2.26.2