Fix vardbapi.flush_cache() so that it only updates the cache when the
authorZac Medico <zmedico@gentoo.org>
Tue, 3 Jun 2008 03:45:58 +0000 (03:45 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 3 Jun 2008 03:45:58 +0000 (03:45 -0000)
commit8c0755618fe67aa044c65f043c81b04d29f34db5
tree8ed2dba0725d2cd9b0870ebb4a6bb45c11b3732a
parenta3e771d1408e2ef8e20fc0f52a2c4f3618214f4a
Fix vardbapi.flush_cache() so that it only updates the cache when the
number of uncached packages reaches a certain threshold (currently 5).
The cache file can be several megabytes in size, so updating it for
every vdb change is wasteful.

svn path=/main/trunk/; revision=10548
pym/portage/dbapi/vartree.py