when checking for blockers. This avoids a heap overflow that triggers
'Cannot allocate memory' errors (reported with python-2.5).
svn path=/main/trunk/; revision=10717
if self._opts_ignore_blockers.intersection(self.myopts):
return None
+ # Call gc.collect() here to avoid heap overflow that
+ # triggers 'Cannot allocate memory' errors (reported
+ # with python-2.5).
+ import gc
+ gc.collect()
+
blocker_dblinks = []
for blocking_pkg in self._blocker_db[
new_pkg.root].findInstalledBlockers(new_pkg,
self.pkgsettings[blocking_pkg.root], treetype="vartree",
vartree=self.trees[blocking_pkg.root]["vartree"]))
+ gc.collect()
+
return blocker_dblinks
def merge(self, mylist, favorites, mtimedb):