summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-11 07:48:02 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-11 07:48:02 +0000
commitca7d37c4885e7cdf1b423e2ad901f6894530eee3 (patch)
treec9b4e490260374bbbe6cb51358749f4a7b5637cd /pym
parent50fb774041fd614330fd3feb0faa2de3a1197fc9 (diff)
downloadportage-ca7d37c4885e7cdf1b423e2ad901f6894530eee3.tar.gz
portage-ca7d37c4885e7cdf1b423e2ad901f6894530eee3.tar.bz2
portage-ca7d37c4885e7cdf1b423e2ad901f6894530eee3.zip
Use slices instead of startswith inside manifest2AuxfileFilter(). (trunk r12823)
svn path=/main/branches/2.1.6/; revision=13054
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/manifest.py4
1 files changed, 2 insertions, 2 deletions
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)