From 98b0a31bf0c3cc9dce6788eae4beee04ce354791 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 8 May 2011 11:24:40 -0700 Subject: resume_depgraph: don't call break_refs in loop The break_refs call was unnecessary and it broke the state of the frozen_config instance, causing the following error: File "pym/_emerge/depgraph.py", line 1290, in _wrapped_add_pkg_dep_string inst_pkgs = vardb.match_pkgs(atom) AttributeError: 'vardbapi' object has no attribute 'match_pkgs' --- pym/_emerge/depgraph.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pym/_emerge/depgraph.py') diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 1f80d0cd5..83d6e9b9a 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -4606,7 +4606,7 @@ class depgraph(object): Break any references in Package instances that lead back to the depgraph. This is useful if you want to hold references to packages without also holding the depgraph on the heap. It should only be called after the - depgraph will not be used for any more calculations. + depgraph and _frozen_config will not be used for any more calculations. """ for root_config in self._frozen_config.roots.values(): root_config.update(self._frozen_config._trees_orig[ @@ -6421,7 +6421,6 @@ def _resume_depgraph(settings, trees, mtimedb, myopts, myparams, spinner): # package has already been installed. dropped_tasks.update(pkg for pkg in \ unsatisfied_parents if pkg.operation != "nomerge") - mydepgraph.break_refs() del e, graph, traversed_nodes, \ unsatisfied_parents, unsatisfied_stack -- cgit v1.2.3-1-g7c22