From: Zac Medico Date: Mon, 14 May 2012 00:46:44 +0000 (-0700) Subject: portdbapi: don't convert _pkg_str to str X-Git-Tag: v2.2.0_alpha105~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a1196c12131c43e8d09005f288bbd71d1df770e0;p=portage.git portdbapi: don't convert _pkg_str to str --- diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 663b62dc3..c5ee7707b 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -869,7 +869,8 @@ class portdbapi(dbapi): xcache_this_level = self.xcache.get(level) if xcache_this_level is not None: xcache_this_level[cache_key] = myval - myval = myval[:] + if not isinstance(myval, _pkg_str): + myval = myval[:] return myval