diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-04-07 09:39:43 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-04-07 09:39:43 +0000 |
commit | a77105d363fa24f2bdca881e4761a337494eadcc (patch) | |
tree | 9d78e6208c9d8667629365ffeb69d30f702080cb | |
parent | b6196a6a054f7008c12ae1be456120a0029bc458 (diff) | |
download | portage-a77105d363fa24f2bdca881e4761a337494eadcc.tar.gz portage-a77105d363fa24f2bdca881e4761a337494eadcc.tar.bz2 portage-a77105d363fa24f2bdca881e4761a337494eadcc.zip |
Optimize manifest2AuxfileFilter handling of ignored directories. Thanks to Brian Harring for the patch.
svn path=/main/trunk/; revision=3088
-rw-r--r-- | pym/portage_manifest.py | 4 |
1 files changed, 1 insertions, 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-") |