From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-759157-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 155CF1389E2
	for <garchives@archives.gentoo.org>; Wed, 24 Dec 2014 19:59:35 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 030A9E08D4;
	Wed, 24 Dec 2014 19:59:33 +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 28502E08D2
	for <gentoo-commits@lists.gentoo.org>; Wed, 24 Dec 2014 19:59:32 +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 593633405FA
	for <gentoo-commits@lists.gentoo.org>; Wed, 24 Dec 2014 19:59:31 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 00C2AD490
	for <gentoo-commits@lists.gentoo.org>; Wed, 24 Dec 2014 19:59:30 +0000 (UTC)
From: "Brian Dolbec" <brian.dolbec@gmail.com>
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" <brian.dolbec@gmail.com>
Message-ID: <1419369436.ffab5352db1f82250f57c234f2bc296abe413eaa.dol-sen@gentoo>
Subject: [gentoo-commits] proj/gentoo-keys:master commit in: gkeys/gkeys/
X-VCS-Repository: proj/gentoo-keys
X-VCS-Files: gkeys/gkeys/actions.py
X-VCS-Directories: gkeys/gkeys/
X-VCS-Committer: dol-sen
X-VCS-Committer-Name: Brian Dolbec
X-VCS-Revision: ffab5352db1f82250f57c234f2bc296abe413eaa
X-VCS-Branch: master
Date: Wed, 24 Dec 2014 19:59:30 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 9c1b574c-8a0b-496c-9343-c8fc75e235cb
X-Archives-Hash: aa51620918b58f92ece04d0dfd12e4b2

commit:     ffab5352db1f82250f57c234f2bc296abe413eaa
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 23 21:17:16 2014 +0000
Commit:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Tue Dec 23 21:17:16 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/gentoo-keys.git;a=commit;h=ffab5352

gkeys/actions.py: Add a listcats action 

---
 gkeys/gkeys/actions.py | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gkeys/gkeys/actions.py b/gkeys/gkeys/actions.py
index 82d608d..92dbb70 100644
--- a/gkeys/gkeys/actions.py
+++ b/gkeys/gkeys/actions.py
@@ -24,12 +24,13 @@ from gkeys.seedhandler import SeedHandler
 from gkeys.config import GKEY
 from gkeys.checks import SPECCHECK_SUMMARY, convert_pf, convert_yn
 
-Available_Actions = ['listseed', 'addseed', 'removeseed', 'moveseed', 'fetchseed',
+Available_Actions = ['listcats', 'listseed', 'addseed', 'removeseed', 'moveseed', 'fetchseed',
             'listseedfiles', 'listkey', 'installkey', 'removekey', 'movekey',
             'installed', 'importkey', 'verify', 'checkkey', 'sign', 'speccheck',
             'refreshkey']
 
 Action_Options = {
+    'listcats': [],
     'listseed': ['nick', 'name', 'keydir', 'fingerprint', 'seedfile', '1file'],
     'addseed': ['nick', 'name', 'keydir', 'fingerprint', 'seedfile'],
     'removeseed': ['nick', 'name', 'keydir', 'fingerprint', 'seedfile'],
@@ -692,6 +693,13 @@ class Actions(object):
         return (verified, messages)
 
 
+    def listcats(self, args):
+        '''List seed file definitions found in the config'''
+        seeds = list(self.config.get_key('seeds'))
+        return (True, {"Categories/Seedfiles defined: %s\n"
+            % (",  ".join(seeds)): True})
+
+
     def listseedfiles(self, args):
         '''List seed files found in the configured seed directory'''
         seedsdir = self.config.get_key('seedsdir')