summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-19 05:51:08 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-19 05:51:08 +0000
commit1501ee33a7b3f38c736c0373d4b10d8baf544bb6 (patch)
treed935cf0d44bd1313afb1ab4323b52500909ba329
parentb597e4777e23dcf7f2a0b2974a89302bec6b9b7b (diff)
downloadportage-1501ee33a7b3f38c736c0373d4b10d8baf544bb6.tar.gz
portage-1501ee33a7b3f38c736c0373d4b10d8baf544bb6.tar.bz2
portage-1501ee33a7b3f38c736c0373d4b10d8baf544bb6.zip
Don't try to create a log file unless PORTAGE_BUILDDIR exists.
svn path=/main/trunk/; revision=3923
-rw-r--r--pym/portage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index b4c648cf6..926a17ce0 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2749,7 +2749,7 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
return unmerge(mysettings["CATEGORY"],
mysettings["PF"], myroot, mysettings, vartree=vartree)
- if "PORT_LOGDIR" in mysettings and "PORTAGE_BUILDDIR" in mysettings:
+ if "PORT_LOGDIR" in mysettings and builddir_lock:
logid_path = os.path.join(mysettings["PORTAGE_BUILDDIR"], ".logid")
if not os.path.exists(logid_path):
f = open(logid_path, "w")