cache/template.py: call self.sync() from __del__
authorZac Medico <zmedico@gentoo.org>
Sat, 8 Jun 2013 01:32:01 +0000 (18:32 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 8 Jun 2013 01:32:44 +0000 (18:32 -0700)
commit386dc3d36b086d8d16fe396bff00b3f13f4c18f9
tree42f5e17170e6e6bddcb53c82106b364cf220c65b
parentc8530deda6b85dad1f7557d490f8a200e8bfa54e
cache/template.py: call self.sync() from __del__

This allows portdbapi.portdbapi_instances to be eliminated, which is
nice because we no longer has to be so careful to avoid memory leaks
involving this variable. It was not just annoying for portage
internals, but also for any API consumers that needed to create/destroy
many portdbapi instances.
pym/portage/__init__.py
pym/portage/cache/template.py
pym/portage/dbapi/porttree.py
pym/portage/tests/resolver/ResolverPlayground.py