From: Zac Medico Date: Fri, 7 Apr 2006 09:39:43 +0000 (-0000) Subject: Optimize manifest2AuxfileFilter handling of ignored directories. Thanks to Brian... X-Git-Tag: v2.1_pre8~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a77105d363fa24f2bdca881e4761a337494eadcc;p=portage.git Optimize manifest2AuxfileFilter handling of ignored directories. Thanks to Brian Harring for the patch. svn path=/main/trunk/; revision=3088 --- 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-")