Don't try to create a log file unless PORTAGE_BUILDDIR exists.
authorZac Medico <zmedico@gentoo.org>
Wed, 19 Jul 2006 05:51:08 +0000 (05:51 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 19 Jul 2006 05:51:08 +0000 (05:51 -0000)
svn path=/main/trunk/; revision=3923

pym/portage.py

index b4c648cf6c3f9a45b405dd8995847d7fe36cc4ef..926a17ce0015744feaa4c36f6b4f6831ade2835d 100644 (file)
@@ -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")