From b5dcd5e5be726a9f463a85c5e45ba7f487ad51c5 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Oct 2006 07:13:26 +0000 Subject: [PATCH] Make manifest2AuxfileFilter() slightly more efficient and also ignore any hidden files. svn path=/main/trunk/; revision=4656 --- pym/portage_manifest.py | 8 +++++--- 1 file 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-") -- 2.26.2