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 7503C13877A for ; Wed, 20 Aug 2014 03:55:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 39A5FE0882; Wed, 20 Aug 2014 03:55:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 79307E087B for ; Wed, 20 Aug 2014 03:55:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 02BD23401D9 for ; Wed, 20 Aug 2014 03:55:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 495C939B9 for ; Wed, 20 Aug 2014 03:55:19 +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: <1408233961.99f22c953e43669b0d12f065452b2015b3da6eda.dol-sen@gentoo> Subject: [gentoo-commits] proj/gentoo-keys:master commit in: gkeys/ X-VCS-Repository: proj/gentoo-keys X-VCS-Files: gkeys/actions.py X-VCS-Directories: gkeys/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 99f22c953e43669b0d12f065452b2015b3da6eda X-VCS-Branch: master Date: Wed, 20 Aug 2014 03:55:19 +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: cffa148a-738e-49a0-94a1-64ef440a0d2d X-Archives-Hash: 6b6693e9ea7220b772cfe4ebe653bb05 commit: 99f22c953e43669b0d12f065452b2015b3da6eda Author: Pavlos Ratis gentoo org> AuthorDate: Sat Aug 16 23:36:09 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Sun Aug 17 00:06:01 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/gentoo-keys.git;a=commit;h=99f22c95 allow installed action to list specific keys --- gkeys/actions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gkeys/actions.py b/gkeys/actions.py index 1732391..a3c28c8 100644 --- a/gkeys/actions.py +++ b/gkeys/actions.py @@ -317,7 +317,11 @@ class Actions(object): self.logger.debug("ACTIONS: installed; keysdir = %s" % keydir) installed_keys = [] try: - for key in os.listdir(keydir): + if args.nick: + keys = [args.nick] + else: + keys = os.listdir(keydir) + for key in keys: seed_path = os.path.join(keydir, key) gkey_path = os.path.join(seed_path, 'gkey.seeds') try: