Make manifest2AuxfileFilter() slightly more efficient and also ignore any hidden...
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Oct 2006 07:13:26 +0000 (07:13 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Oct 2006 07:13:26 +0000 (07:13 -0000)
svn path=/main/trunk/; revision=4656

pym/portage_manifest.py

index 687d7ca103966db5351a1cc0c8d19dd69a078124..aa6f0c015a34e6be11875eccb52cd14c7202015c 100644 (file)
@@ -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-")