reposyntax: Fix backtrace caused by cache changes
authorSebastian Luther <SebastianLuther@gmx.de>
Wed, 22 Sep 2010 09:56:01 +0000 (11:56 +0200)
committerZac Medico <zmedico@gentoo.org>
Mon, 27 Sep 2010 06:50:14 +0000 (23:50 -0700)
pym/_emerge/depgraph.py

index 5fbcc2590800bce92b462e8c30605f920e22afef..a8caf129633a96d5269f010586c51af5e79bb04e 100644 (file)
@@ -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)