summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-19 01:11:57 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-19 01:11:57 +0000
commitda5cbb83e107623fc7d8a5887c9b9e1ae85b36ff (patch)
tree25578dce223edc0a4b98a9eacbf0613629d5fad5
parent315956fae84b5c56cfc7d46481a53dfa9beb8ccf (diff)
downloadportage-da5cbb83e107623fc7d8a5887c9b9e1ae85b36ff.tar.gz
portage-da5cbb83e107623fc7d8a5887c9b9e1ae85b36ff.tar.bz2
portage-da5cbb83e107623fc7d8a5887c9b9e1ae85b36ff.zip
Ensure that BUILD_PREFIX has been created before attempting to lock PORTAGE_BUILDDIR.
svn path=/main/trunk/; revision=3921
-rw-r--r--pym/portage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 7fcee29c8..4338d6e57 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2738,6 +2738,8 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
try:
# Build directory creation isn't required for any of these.
if mydo not in ["fetch","digest","manifest"]:
+ portage_util.ensure_dirs(
+ mysettings["BUILD_PREFIX"], mode=070, mask=02)
builddir_lock = portage_locks.lockdir(
mysettings["PORTAGE_BUILDDIR"])
mystatus = prepare_build_dirs(myroot, mysettings, cleanup)