diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-10-11 07:13:26 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-10-11 07:13:26 +0000 |
commit | b5dcd5e5be726a9f463a85c5e45ba7f487ad51c5 (patch) | |
tree | 3e9d10040fbdbf65e20f2612ea9c7bd08573a73a | |
parent | 2b65a8b52aeae8bc61c45264368571e93b70618c (diff) | |
download | portage-b5dcd5e5be726a9f463a85c5e45ba7f487ad51c5.tar.gz portage-b5dcd5e5be726a9f463a85c5e45ba7f487ad51c5.tar.bz2 portage-b5dcd5e5be726a9f463a85c5e45ba7f487ad51c5.zip |
Make manifest2AuxfileFilter() slightly more efficient and also ignore any hidden files.
svn path=/main/trunk/; revision=4656
-rw-r--r-- | pym/portage_manifest.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pym/portage_manifest.py b/pym/portage_manifest.py index 687d7ca10..aa6f0c015 100644 --- a/pym/portage_manifest.py +++ b/pym/portage_manifest.py @@ -16,9 +16,11 @@ class FileNotInManifestException(PortageException): def manifest2AuxfileFilter(filename): filename = filename.strip(os.sep) - for ignored_dir in ("CVS", ".bzr",".git",".svn"): - if filename == ignored_dir or \ - ignored_dir in filename.split(os.sep): + mysplit = filename.split(os.path.sep) + if "CVS" in mysplit: + return False + for x in mysplit: + if x.startswith("."): return False return not filename.startswith("digest-") |