summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi/vartree.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-03-27 13:55:11 -0700
committerZac Medico <zmedico@gentoo.org>2011-03-27 13:58:10 -0700
commitc66a8136b431ec42ea02e6378ed1f6981d7ef81a (patch)
treecf129c5f45ae796fd5ad1c85e889d62688e79a74 /pym/portage/dbapi/vartree.py
parent0c70d3a3ff2e122577cbebc1abdb0720f18bf106 (diff)
downloadportage-c66a8136b431ec42ea02e6378ed1f6981d7ef81a.tar.gz
portage-c66a8136b431ec42ea02e6378ed1f6981d7ef81a.tar.bz2
portage-c66a8136b431ec42ea02e6378ed1f6981d7ef81a.zip
UnsupportedAPIException: handle unicode in EAPI
Normally EAPI doesn't contain unicode, but as in bug #359675, it can contain practically anything if files in /var/db/pkg are corrupt.
Diffstat (limited to 'pym/portage/dbapi/vartree.py')
-rw-r--r--pym/portage/dbapi/vartree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index ce94fa418..a9e8edef2 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -1536,7 +1536,7 @@ class dblink(object):
showMessage(_("!!! FAILED prerm: %s\n") % \
os.path.join(self.dbdir, "EAPI"),
level=logging.ERROR, noiselevel=-1)
- showMessage("%s\n" % (e,),
+ showMessage(_unicode_decode("%s\n") % (e,),
level=logging.ERROR, noiselevel=-1)
myebuildpath = None