From 1c11f3e01d78a7ea941425e1e592ff81c66c0dd5 Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Fri, 23 Jun 2006 00:40:38 +0000 Subject: [PATCH] ignore .files in /etc/portage recursion svn path=/main/trunk/; revision=3611 --- pym/portage_util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pym/portage_util.py b/pym/portage_util.py index 6c39192c0..0a95453d7 100644 --- a/pym/portage_util.py +++ b/pym/portage_util.py @@ -183,6 +183,7 @@ def grablines(myfilename,recursive=0): mylines=[] if recursive and os.path.isdir(myfilename): myfiles = [myfilename+os.path.sep+x for x in os.listdir(myfilename)] + myfiles = [file for files in myfiles if not file.startswith(".")] myfiles.sort() for f in myfiles: mylines.extend(grablines(f, recursive)) -- 2.26.2