Optimize manifest2AuxfileFilter handling of ignored directories. Thanks to Brian...
authorZac Medico <zmedico@gentoo.org>
Fri, 7 Apr 2006 09:39:43 +0000 (09:39 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 7 Apr 2006 09:39:43 +0000 (09:39 -0000)
svn path=/main/trunk/; revision=3088

pym/portage_manifest.py

index 61dc7c18b45ba3cde2f2e12229ff956fb8616138..e47fd178b50aaac49ffd4cb8b445ad0719e360eb 100644 (file)
@@ -12,9 +12,7 @@ def manifest2AuxfileFilter(filename):
        filename = filename.strip(os.sep)
        for ignored_dir in ("CVS", ".bzr",".git",".svn"):
                if filename == ignored_dir or \
-                       filename.startswith(ignored_dir+os.sep) or \
-                       filename.endswith(os.sep+ignored_dir) or \
-                       filename.find(os.sep+ignored_dir+os.sep)!=-1:
+               ignored_dir in filename.split(os.sep):
                        return False
        return not filename.startswith("digest-")