Clean up reference to parts of the first graph for --skipfirst.
authorZac Medico <zmedico@gentoo.org>
Sat, 31 May 2008 02:06:01 +0000 (02:06 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 31 May 2008 02:06:01 +0000 (02:06 -0000)
svn path=/main/trunk/; revision=10514

pym/_emerge/__init__.py

index 8ae31e50c32208797fa3ea240661deea874d410c..7d9cbdfa82cac816f36f14b2b76e37cd1f1ae5d4 100644 (file)
@@ -8369,13 +8369,13 @@ def action_build(settings, trees, mtimedb,
                        while True:
                                mydepgraph = depgraph(settings, trees,
                                        myopts, myparams, spinner)
-                               graph = mydepgraph.digraph
                                try:
                                        success = mydepgraph.loadResumeCommand(mtimedb["resume"])
                                except depgraph.UnsatisfiedResumeDep, e:
                                        if "--skipfirst" not in myopts:
                                                raise
 
+                                       graph = mydepgraph.digraph
                                        unsatisfied_parents = dict((dep.parent, dep.parent) \
                                                for dep in e.value)
                                        traversed_nodes = set()
@@ -8415,7 +8415,8 @@ def action_build(settings, trees, mtimedb,
                                                raise
                                        mergelist[:] = pruned_mergelist
                                        dropped_tasks.update(unsatisfied_parents)
-                                       del e, unsatisfied_parents
+                                       del e, graph, traversed_nodes, \
+                                               unsatisfied_parents, unsatisfied_stack
                                        continue
                                else:
                                        break