portdbapi: don't convert _pkg_str to str
authorZac Medico <zmedico@gentoo.org>
Mon, 14 May 2012 00:46:44 +0000 (17:46 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 14 May 2012 00:46:44 +0000 (17:46 -0700)
pym/portage/dbapi/porttree.py

index 663b62dc3f753011f37f7634b0647241f56ac954..c5ee7707bcb5f0f12d9c2073d2bbace6cd608f86 100644 (file)
@@ -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