From 0c3581a37b45dd3a86b579d373d9951b8c458646 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 28 Oct 2007 09:05:18 +0000 Subject: [PATCH] Fix cp_list() to prevent it from returning a reference to one of it's internal lists. svn path=/main/trunk/; revision=8331 --- pym/portage/dbapi/virtual.py | 4 ++-- 1 file 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) -- 2.26.2