summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-01-11 08:47:50 +0000
committerMarius Mauch <genone@gentoo.org>2007-01-11 08:47:50 +0000
commitf9352983c70e5bebb3f7f7e8154d8bd85d3b14c1 (patch)
treed5f4ea0b50819c6221e62e6622cc0cde509673d5
parent848f6e5d29a84970c2356fb9af45326288f73ed6 (diff)
downloadportage-f9352983c70e5bebb3f7f7e8154d8bd85d3b14c1.tar.gz
portage-f9352983c70e5bebb3f7f7e8154d8bd85d3b14c1.tar.bz2
portage-f9352983c70e5bebb3f7f7e8154d8bd85d3b14c1.zip
Extend ignore filter for grablines (bug #144445)
svn path=/main/trunk/; revision=5548
-rw-r--r--pym/portage_util.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage_util.py b/pym/portage_util.py
index b1199989c..c7455a309 100644
--- a/pym/portage_util.py
+++ b/pym/portage_util.py
@@ -228,10 +228,12 @@ def grabfile_package(myfilename, compatlevel=0, recursive=0):
def grablines(myfilename,recursive=0):
mylines=[]
if recursive and os.path.isdir(myfilename):
+ if myfilename in ["RCS", "CVS", "SCCS"]:
+ continue
dirlist = os.listdir(myfilename)
dirlist.sort()
for f in dirlist:
- if not f.startswith("."):
+ if not f.startswith(".") and not f.endswith("~"):
mylines.extend(grablines(
os.path.join(myfilename, f), recursive))
else: