1 |
commit: 70f97d275cf7553773d685b16416c82866d3b299 |
2 |
Author: Pavlos Ratis <dastergon <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 1 17:56:15 2014 +0000 |
4 |
Commit: Pavlos Ratis <dastergon <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 1 17:56:15 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-keys.git;a=commit;h=70f97d27 |
7 |
|
8 |
filter output with seed files only |
9 |
|
10 |
--- |
11 |
gkeys/actions.py | 7 +++++-- |
12 |
1 file changed, 5 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/gkeys/actions.py b/gkeys/actions.py |
15 |
index 8d381db..85c0e0e 100644 |
16 |
--- a/gkeys/actions.py |
17 |
+++ b/gkeys/actions.py |
18 |
@@ -284,7 +284,10 @@ class Actions(object): |
19 |
|
20 |
|
21 |
def listseedfiles(self, args): |
22 |
+ seedfile = [] |
23 |
seedsdir = self.config.get_key('seedsdir') |
24 |
- files = os.listdir(seedsdir) |
25 |
+ for files in os.listdir(seedsdir): |
26 |
+ if files.endswith('.seeds'): |
27 |
+ seedfile.append(files) |
28 |
return {"Seed files found at path: %s\n %s" |
29 |
- % (seedsdir, "\n ".join(files)): True} |
30 |
+ % (seedsdir, "\n ".join(seedfile)): True} |