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>
Sat, 7 May 2011 21:59:54 +0000 (14:59 -0700)
commit8601ea2b80208491b471f37710b35813fd341c28
treeafefcbc879800a481e901b866df1ecb011d69a4e
parent48e1b835df5fefe49e2227e37c007d87fade1c55
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