Make Scheduler._destroy_installed_graph() destroy _digraph.
authorZac Medico <zmedico@gentoo.org>
Mon, 6 Sep 2010 00:16:09 +0000 (17:16 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 6 Sep 2010 00:16:09 +0000 (17:16 -0700)
pym/_emerge/Scheduler.py

index 89e5f235f1b2ff56ec1eac2e39d6cf9d160a356a..e94b0461bb135238bb2e38ba4fc6afdf4e51c162 100644 (file)
@@ -300,11 +300,12 @@ class Scheduler(PollScheduler):
        def _destroy_installed_graph(self):
                """
                Use this to free memory before calling _calc_resume_list().
-               After _calc_resume_list(), the _init_installed_graph() needs
-               to be called in order to re-generate the structures that this
-               method destroys.
+               After _calc_resume_list(), the _init_installed_graph() and
+               _set_digraph() methods need to be called in order to
+               re-generate the structures that this method destroys. 
                """
                self._blocker_db = None
+               self._set_digraph(None)
                gc.collect()
 
        def _poll(self, timeout=None):