From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 197371381F3 for ; Sun, 23 Jun 2013 07:14:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C7444E09BE; Sun, 23 Jun 2013 07:13:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1E492E0966 for ; Sun, 23 Jun 2013 07:13:57 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 07A4233E663 for ; Sun, 23 Jun 2013 07:13:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id AB08DE5462 for ; Sun, 23 Jun 2013 07:13:55 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1371865323.c37261f1fdca7882af62d551790429c10653b9cc.dol-sen@gentoo> Subject: [gentoo-commits] proj/gentoo-keys:master commit in: gkeys/ X-VCS-Repository: proj/gentoo-keys X-VCS-Files: gkeys/lib.py X-VCS-Directories: gkeys/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: c37261f1fdca7882af62d551790429c10653b9cc X-VCS-Branch: master Date: Sun, 23 Jun 2013 07:13:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 604bbc3f-b2a6-468e-9795-009b68cfc56f X-Archives-Hash: c8fbe7f8820e5793100609a5e2819701 commit: c37261f1fdca7882af62d551790429c10653b9cc Author: Brian Dolbec gentoo org> AuthorDate: Sat Jun 22 01:42:03 2013 +0000 Commit: Brian Dolbec gmail com> CommitDate: Sat Jun 22 01:42:03 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-keys.git;a=commit;h=c37261f1 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