diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-14 22:22:15 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-14 22:22:15 -0700 |
commit | 1822e8a5e31cea9c2044e069895417bf2869ed45 (patch) | |
tree | a599abf92b2a09639d3a756c4a54730f9a4c70a8 /bin | |
parent | 86dc8c4f89029478e5ec07c2f99527287307d118 (diff) | |
download | portage-1822e8a5e31cea9c2044e069895417bf2869ed45.tar.gz portage-1822e8a5e31cea9c2044e069895417bf2869ed45.tar.bz2 portage-1822e8a5e31cea9c2044e069895417bf2869ed45.zip |
Make Package._metadata_exception() use unicode format strings in order
to avoid UnicodeDecodeError in python-2.x.
This issue was reported in forum thread
http://forums.gentoo.org/viewtopic-t-844623.html where the following
traceback was posted:
File "/usr/lib/portage/pym/_emerge/FakeVartree.py", line 195, in _pkg
type_name="installed")
File "/usr/lib/portage/pym/_emerge/Package.py", line 64, in __init__
self._validate_deps()
File "/usr/lib/portage/pym/_emerge/Package.py", line 93, in _validate_deps
self._metadata_exception(k, e)
File "/usr/lib/portage/pym/_emerge/Package.py", line 242, in _metadata_exception
"%s: %s in '%s'" % (k, e, path))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 22: ordinal not in range(128)
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions