summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: