Fix cache.metadata.database so that it correctly removes the newline character from...
authorZac Medico <zmedico@gentoo.org>
Sun, 26 Feb 2006 05:39:21 +0000 (05:39 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 26 Feb 2006 05:39:21 +0000 (05:39 -0000)
svn path=/main/trunk/; revision=2786

pym/cache/metadata.py

index 5e5f0bde74032f204f351bbc5e0c918166a81be6..0fd11cda8db097d051942d801a33c87535f7b98e 100644 (file)
@@ -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