When reading the remote Packages file for --getbinpkg, use codecs.iterdecode
authorZac Medico <zmedico@gentoo.org>
Thu, 10 Dec 2009 01:03:49 +0000 (01:03 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 10 Dec 2009 01:03:49 +0000 (01:03 -0000)
commita260d2d9f61968e08750455092dc429fbb1ebdcb
tree99fceaebe23ec85a4c8a6c9214e6c387151d0f86
parentcca5b7a17ab58a0af841e58e27350ed03fd57afd
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.
(trunk r14969)

svn path=/main/branches/2.1.7/; revision=15003
pym/portage/dbapi/bintree.py