From: Zac Medico Date: Wed, 11 Oct 2006 07:13:26 +0000 (-0000) Subject: Make manifest2AuxfileFilter() slightly more efficient and also ignore any hidden... X-Git-Tag: v2.1.2~651 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b5dcd5e5be726a9f463a85c5e45ba7f487ad51c5;p=portage.git Make manifest2AuxfileFilter() slightly more efficient and also ignore any hidden files. svn path=/main/trunk/; revision=4656 --- 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-")