summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-10-28 09:05:18 +0000
committerZac Medico <zmedico@gentoo.org>2007-10-28 09:05:18 +0000
commit0c3581a37b45dd3a86b579d373d9951b8c458646 (patch)
tree1ef8eea8101eb424caf91f7cf328e71f0805ede5
parent4ac207ffc70bb84a74d0b11d80864c5cdfa2ad32 (diff)
downloadportage-0c3581a37b45dd3a86b579d373d9951b8c458646.tar.gz
portage-0c3581a37b45dd3a86b579d373d9951b8c458646.tar.bz2
portage-0c3581a37b45dd3a86b579d373d9951b8c458646.zip
Fix cp_list() to prevent it from returning a reference
to one of it's internal lists. svn path=/main/trunk/; revision=8331
-rw-r--r--pym/portage/dbapi/virtual.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/dbapi/virtual.py b/pym/portage/dbapi/virtual.py
index 52aca6880..fe9356212 100644
--- a/pym/portage/dbapi/virtual.py
+++ b/pym/portage/dbapi/virtual.py
@@ -50,8 +50,8 @@ class fakedbapi(dbapi):
cpv_list = []
self._cpv_sort_ascending(cpv_list)
if not (not cpv_list and mycp.startswith("virtual/")):
- self._match_cache[mycp] = cpv_list[:]
- return cpv_list
+ self._match_cache[mycp] = cpv_list
+ return cpv_list[:]
def cp_all(self):
return list(self.cpdict)