When reading the remote Packages file for --getbinpkg, use codecs.iterdecode
authorZac Medico <zmedico@gentoo.org>
Tue, 8 Dec 2009 21:38:56 +0000 (21:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 8 Dec 2009 21:38:56 +0000 (21:38 -0000)
commite9923790b9290ae44ba3a8dd7670c8d878d3d88d
tree33c0eb86ac6ffb9d6c39ae2cccbb46783b6ae971
parent16f2a01e156f2742677e9950bcf931239790c753
When reading the remote Packages file for --getbinpkg, use codecs.iterdecode
to decode the stream. Also, don't use finally to close the atomic_ofstream
when writing the file since we want it to abort if an exception is raised.

svn path=/main/trunk/; revision=14969
pym/portage/dbapi/bintree.py