summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Luther <SebastianLuther@gmx.de>2010-09-22 11:56:01 +0200
committerZac Medico <zmedico@gentoo.org>2010-09-26 23:50:14 -0700
commitbc4c17fc808db6a1f375b4175d5ebf7e427cec1b (patch)
tree5fa3611a75d2b5ef76baa63d02182077386d8ae9
parenta6d9d67e3ff100bc07cc77d5e7702983fa6122e0 (diff)
downloadportage-bc4c17fc808db6a1f375b4175d5ebf7e427cec1b.tar.gz
portage-bc4c17fc808db6a1f375b4175d5ebf7e427cec1b.tar.bz2
portage-bc4c17fc808db6a1f375b4175d5ebf7e427cec1b.zip
reposyntax: Fix backtrace caused by cache changes
-rw-r--r--pym/_emerge/depgraph.py6
1 files 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)