Use slices instead of startswith inside manifest2AuxfileFilter(). (trunk r12823)
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 07:48:02 +0000 (07:48 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 07:48:02 +0000 (07:48 -0000)
svn path=/main/branches/2.1.6/; revision=13054

pym/portage/manifest.py

index 02836e7ece8009f11711423538cc0b2f9a4e7909..9150674a958994226229d0862199ec39be017314 100644 (file)
@@ -21,9 +21,9 @@ def manifest2AuxfileFilter(filename):
        if "CVS" in mysplit:
                return False
        for x in mysplit:
-               if x.startswith("."):
+               if x[:1] == '.':
                        return False
-       return not filename.startswith("digest-")
+       return not filename[:7] == 'digest-'
 
 def manifest2MiscfileFilter(filename):
        filename = filename.strip(os.sep)