summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-04 00:25:10 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-04 00:25:10 +0000
commit57e267161cfa537938e930c9529e2225d877c147 (patch)
tree05491d71934432da72e31314a25c7cf4d505cda5
parentcfc02358de84991733fa56eeef668fa5416c986c (diff)
downloadportage-57e267161cfa537938e930c9529e2225d877c147.tar.gz
portage-57e267161cfa537938e930c9529e2225d877c147.tar.bz2
portage-57e267161cfa537938e930c9529e2225d877c147.zip
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). (trunk r8410) svn path=/main/branches/2.1.2/; revision=8411
-rw-r--r--pym/portage.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pym/portage.py b/pym/portage.py
index efe65c5a3..d08350e7a 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -6828,14 +6828,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
@@ -6921,7 +6922,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
getMissingKeywords = self.mysettings._getMissingKeywords