Binpkg: fix ValueError when installing binpkgs
authorHector Rivas <keymon@gmail.com>
Thu, 25 Aug 2011 20:24:37 +0000 (22:24 +0200)
committerFabian Groffen <grobian@gentoo.org>
Thu, 25 Aug 2011 20:24:37 +0000 (22:24 +0200)
Our Prefix code wasn't entirely unicode-ed, bug #379469.

pym/_emerge/Binpkg.py

index 77ac72003612ff6c9f92a50b093a2e70e9782f24..4b66033b0b66b06eec3d9413a7d98f6f30d65dc3 100644 (file)
@@ -280,7 +280,7 @@ class Binpkg(CompositeTask):
                        encoding=_encodings['fs'], errors='strict'),
                        mode='w', encoding=_encodings['content'], errors='strict')
                try:
-                       f.write(EPREFIX + "\n")
+                       f.write(_unicode_decode(EPREFIX + "\n"))
                finally:
                        f.close()