From: Sebastian Luther Date: Wed, 22 Sep 2010 09:56:01 +0000 (+0200) Subject: reposyntax: Fix backtrace caused by cache changes X-Git-Tag: v2.2_rc90~108 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bc4c17fc808db6a1f375b4175d5ebf7e427cec1b;p=portage.git reposyntax: Fix backtrace caused by cache changes --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 5fbcc2590..a8caf1296 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -3731,16 +3731,16 @@ class depgraph(object): graph = self._dynamic_config._scheduler_graph trees = self._frozen_config.trees pruned_pkg_cache = {} - for pkg in pkg_cache: + for key, pkg in pkg_cache.items(): if pkg in graph or \ (pkg.installed and pkg in trees[pkg.root]['vartree'].dbapi): - pruned_pkg_cache[pkg] = pkg + pruned_pkg_cache[key] = pkg for root in trees: trees[root]['vartree']._pkg_cache = pruned_pkg_cache self.break_refs(trees[root]['vartree'].dbapi) - self.break_refs(pruned_pkg_cache) + self.break_refs(pruned_pkg_cache.values()) sched_config = \ _scheduler_graph_config(trees, pruned_pkg_cache, graph, mergelist)