projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6196a6
)
Optimize manifest2AuxfileFilter handling of ignored directories. Thanks to Brian...
author
Zac Medico
<zmedico@gentoo.org>
Fri, 7 Apr 2006 09:39:43 +0000
(09:39 -0000)
committer
Zac 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
patch
|
blob
|
history
diff --git
a/pym/portage_manifest.py
b/pym/portage_manifest.py
index 61dc7c18b45ba3cde2f2e12229ff956fb8616138..e47fd178b50aaac49ffd4cb8b445ad0719e360eb 100644
(file)
--- 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-")