doebuild: use EbuildBuildDir for locking
authorZac Medico <zmedico@gentoo.org>
Sat, 7 May 2011 21:59:54 +0000 (14:59 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 8 May 2011 18:42:48 +0000 (11:42 -0700)
commit476fc7120f85b71fd688178bed627bb921e6a13c
tree6d2b023d932e61787c4bfe826907ffd43f76713e
parenteaa0691df6216347060d267e0285674a1b31ac2f
doebuild: use EbuildBuildDir for locking

EbuildBuildDir also performs safe removal of the category when it is
empty, so ebuild.sh/dyn_clean doesn't need to do it anymore. This
fixes a race condition if one process is trying to remove the category
directory while another one is trying to create it for
PORTAGE_BUILDDIR.
bin/ebuild.sh
pym/portage/package/ebuild/doebuild.py