commit: 99f22c953e43669b0d12f065452b2015b3da6eda
Author: Pavlos Ratis <dastergon <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 16 23:36:09 2014 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> 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: