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 9A5B513873B for ; Sat, 1 Mar 2014 17:50:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C9926E0B00; Sat, 1 Mar 2014 17:50:02 +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 3ACF6E0B00 for ; Sat, 1 Mar 2014 17:50:02 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 666FD33FB72 for ; Sat, 1 Mar 2014 17:50:01 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 345A8188EC for ; Sat, 1 Mar 2014 17:50:00 +0000 (UTC) From: "Pavlos Ratis" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pavlos Ratis" Message-ID: <1393696575.70f97d275cf7553773d685b16416c82866d3b299.dastergon@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: dastergon X-VCS-Committer-Name: Pavlos Ratis X-VCS-Revision: 70f97d275cf7553773d685b16416c82866d3b299 X-VCS-Branch: master Date: Sat, 1 Mar 2014 17:50:00 +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: 4ee2d754-6cdd-4499-b4e1-1d706d80058d X-Archives-Hash: 9aa2df0f226cd326816afb9b684afafc commit: 70f97d275cf7553773d685b16416c82866d3b299 Author: Pavlos Ratis gentoo org> AuthorDate: Sat Mar 1 17:56:15 2014 +0000 Commit: Pavlos Ratis gentoo org> CommitDate: Sat Mar 1 17:56:15 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-keys.git;a=commit;h=70f97d27 filter output with seed files only --- gkeys/actions.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gkeys/actions.py b/gkeys/actions.py index 8d381db..85c0e0e 100644 --- a/gkeys/actions.py +++ b/gkeys/actions.py @@ -284,7 +284,10 @@ class Actions(object): def listseedfiles(self, args): + seedfile = [] seedsdir = self.config.get_key('seedsdir') - files = os.listdir(seedsdir) + for files in os.listdir(seedsdir): + if files.endswith('.seeds'): + seedfile.append(files) return {"Seed files found at path: %s\n %s" - % (seedsdir, "\n ".join(files)): True} + % (seedsdir, "\n ".join(seedfile)): True}