From: Zac Medico Date: Wed, 19 Jul 2006 05:51:08 +0000 (-0000) Subject: Don't try to create a log file unless PORTAGE_BUILDDIR exists. X-Git-Tag: v2.1.1~201 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1501ee33a7b3f38c736c0373d4b10d8baf544bb6;p=portage.git Don't try to create a log file unless PORTAGE_BUILDDIR exists. svn path=/main/trunk/; revision=3923 --- 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")