Extend ignore filter for grablines (bug #144445)
authorMarius Mauch <genone@gentoo.org>
Thu, 11 Jan 2007 08:47:50 +0000 (08:47 -0000)
committerMarius Mauch <genone@gentoo.org>
Thu, 11 Jan 2007 08:47:50 +0000 (08:47 -0000)
svn path=/main/trunk/; revision=5548

pym/portage_util.py

index b1199989c0cc1051f00e61f668c9a75943afdee6..c7455a309cc1522259d93fbe8abea930cb08ddec 100644 (file)
@@ -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: