Optimize `emaint` --fix binhost so that it the Packages file isn't re-read
authorZac Medico <zmedico@gentoo.org>
Fri, 1 Aug 2008 04:13:23 +0000 (04:13 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 1 Aug 2008 04:13:23 +0000 (04:13 -0000)
commitce4847e2e7db79f23f662115d2b070b596e0118e
tree302c8a6d00ab2d24f54866ec9de9fb06f7c89deb
parentb04b06a4184b3355f87f8436cc2a96dbff302d54
Optimize `emaint` --fix binhost so that it the Packages file isn't re-read
and re-written for each package that's updated. Instead, hold a lock for
the whole time the command is running and just update it once.

svn path=/main/trunk/; revision=11307
bin/emaint
pym/portage/cache/mappings.py
pym/portage/dbapi/bintree.py