Use slices instead of startswith inside manifest2AuxfileFilter().
authorZac Medico <zmedico@gentoo.org>
Tue, 10 Mar 2009 06:41:55 +0000 (06:41 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 10 Mar 2009 06:41:55 +0000 (06:41 -0000)
svn path=/main/trunk/; revision=12823

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)