From bc4c17fc808db6a1f375b4175d5ebf7e427cec1b Mon Sep 17 00:00:00 2001 From: Sebastian Luther Date: Wed, 22 Sep 2010 11:56:01 +0200 Subject: [PATCH] reposyntax: Fix backtrace caused by cache changes --- pym/_emerge/depgraph.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.26.2