From a77105d363fa24f2bdca881e4761a337494eadcc Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 7 Apr 2006 09:39:43 +0000 Subject: [PATCH] Optimize manifest2AuxfileFilter handling of ignored directories. Thanks to Brian Harring for the patch. svn path=/main/trunk/; revision=3088 --- pym/portage_manifest.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pym/portage_manifest.py b/pym/portage_manifest.py index 61dc7c18b..e47fd178b 100644 --- a/pym/portage_manifest.py +++ b/pym/portage_manifest.py @@ -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-") -- 2.26.2