aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-05-13 17:46:44 -0700
committerZac Medico <zmedico@gentoo.org>2012-05-13 17:46:44 -0700
commita1196c12131c43e8d09005f288bbd71d1df770e0 (patch)
treebc7d21d7fe72e1357192e5af61946e28e26a2267 /pym/portage/dbapi
parentdblink: use _pkg_str + vercmp, not pkgcmp (diff)
downloadportage-a1196c12131c43e8d09005f288bbd71d1df770e0.tar.gz
portage-a1196c12131c43e8d09005f288bbd71d1df770e0.tar.bz2
portage-a1196c12131c43e8d09005f288bbd71d1df770e0.zip
portdbapi: don't convert _pkg_str to str
Diffstat (limited to 'pym/portage/dbapi')
-rw-r--r--pym/portage/dbapi/porttree.py3
1 files changed, 2 insertions, 1 deletions
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