From: Zac Medico Date: Sun, 26 Feb 2006 05:39:21 +0000 (-0000) Subject: Fix cache.metadata.database so that it correctly removes the newline character from... X-Git-Tag: v2.1_pre6~54 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=20814d478ee7609e988ac2655d2b61c6b68c2f90;p=portage.git Fix cache.metadata.database so that it correctly removes the newline character from the end of the line when parsing flat_hash entries. svn path=/main/trunk/; revision=2786 --- diff --git a/pym/cache/metadata.py b/pym/cache/metadata.py index 5e5f0bde7..0fd11cda8 100644 --- a/pym/cache/metadata.py +++ b/pym/cache/metadata.py @@ -50,7 +50,7 @@ class database(flat_hash.database): if not c.isalpha(): if c == "=" and idx > 0: hashed = True - d[line[:idx]] = line[idx + 1:] + d[line[:idx]] = line[idx + 1:-1] elif c == "_" or c.isdigit(): continue break