summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-05 17:16:09 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-05 17:16:09 -0700
commitd9741c4857760d6f6b4548b768895b015c9d0c34 (patch)
tree652e423033f162a536c6b9313995ff136ee5c664
parente359806b4587b5a98c7817e2e7bb0cc7efdfba6d (diff)
downloadportage-d9741c4857760d6f6b4548b768895b015c9d0c34.tar.gz
portage-d9741c4857760d6f6b4548b768895b015c9d0c34.tar.bz2
portage-d9741c4857760d6f6b4548b768895b015c9d0c34.zip
Make Scheduler._destroy_installed_graph() destroy _digraph.
-rw-r--r--pym/_emerge/Scheduler.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py
index 89e5f235f..e94b0461b 100644
--- a/pym/_emerge/Scheduler.py
+++ b/pym/_emerge/Scheduler.py
@@ -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):