Remove the MergeTask._blocker_db attribute since it can just be a
authorZac Medico <zmedico@gentoo.org>
Fri, 27 Jun 2008 23:34:55 +0000 (23:34 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 27 Jun 2008 23:34:55 +0000 (23:34 -0000)
local variable.

svn path=/main/trunk/; revision=10822

pym/_emerge/__init__.py

index 4b00d209971520d8c3febbf9f5ef80a040f0cd15..cc7ed5b95b14b9adda8724631840dd53a5b2d19b 100644 (file)
@@ -5887,11 +5887,9 @@ class MergeTask(object):
                if settings.get("PORTAGE_DEBUG", "") == "1":
                        self.edebug = 1
                self.pkgsettings = {}
-               self._blocker_db = {}
                for root in trees:
                        self.pkgsettings[root] = portage.config(
                                clone=trees[root]["vartree"].settings)
-                       self._blocker_db[root] = BlockerDB(trees[root]["root_config"])
                self.curval = 0
                self._spawned_pids = []
 
@@ -5914,10 +5912,11 @@ class MergeTask(object):
                import gc
                gc.collect()
 
+               blocker_db = BlockerDB(self.trees[new_pkg.root]["root_config"])
+
                blocker_dblinks = []
-               for blocking_pkg in self._blocker_db[
-                       new_pkg.root].findInstalledBlockers(new_pkg,
-                       acquire_lock=acquire_lock):
+               for blocking_pkg in blocker_db.findInstalledBlockers(
+                       new_pkg, acquire_lock=acquire_lock):
                        if new_pkg.slot_atom == blocking_pkg.slot_atom:
                                continue
                        if new_pkg.cpv == blocking_pkg.cpv: