From 62b34e352a96e86e103dd88de82a908512ede010 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 4 Nov 2007 00:21:02 +0000 Subject: For sanity, pass an actual list of keys into aux_get() instead of iterating over a set that happens to be mutable (though it remains constant in practice). svn path=/main/trunk/; revision=8410 --- pym/portage/dbapi/porttree.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index e6238700d..ea51f5d7e 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -604,14 +604,15 @@ class portdbapi(dbapi): myval = "" settings = self.mysettings local_config = settings.local_config + aux_keys = list(self._aux_cache_keys) if level == "minimum-visible": iterfunc = iter else: iterfunc = reversed for cpv in iterfunc(mylist): try: - metadata = dict(izip(self._aux_cache_keys, - self.aux_get(cpv, self._aux_cache_keys))) + metadata = dict(izip(aux_keys, + self.aux_get(cpv, aux_keys))) except KeyError: # ebuild masked by corruption continue @@ -709,7 +710,7 @@ class portdbapi(dbapi): if mylist is None: return [] newlist=[] - aux_keys = self._aux_cache_keys + aux_keys = list(self._aux_cache_keys) metadata = {} local_config = self.mysettings.local_config for mycpv in mylist: -- cgit v1.2.3-1-g7c22