From: Zac Medico Date: Sun, 28 Oct 2007 09:05:18 +0000 (-0000) Subject: Fix cp_list() to prevent it from returning a reference X-Git-Tag: v2.2_pre1~492 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0c3581a37b45dd3a86b579d373d9951b8c458646;p=portage.git Fix cp_list() to prevent it from returning a reference to one of it's internal lists. svn path=/main/trunk/; revision=8331 --- 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)