From: Zac Medico Date: Tue, 10 Mar 2009 06:41:55 +0000 (-0000) Subject: Use slices instead of startswith inside manifest2AuxfileFilter(). X-Git-Tag: v2.2_rc24~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2e85bdac66c447639c5b9378f83ffd62cee27c23;p=portage.git Use slices instead of startswith inside manifest2AuxfileFilter(). svn path=/main/trunk/; revision=12823 --- diff --git a/pym/portage/manifest.py b/pym/portage/manifest.py index 02836e7ec..9150674a9 100644 --- a/pym/portage/manifest.py +++ b/pym/portage/manifest.py @@ -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)