From: Zac Medico Date: Tue, 17 Aug 2010 07:23:36 +0000 (-0700) Subject: Make sure doebuild() doesn't erroneously unlink a logfile when returnpid X-Git-Tag: v2.2_rc68~135 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5729491242cb2be1b5fa8de1bc2761d4e26dca2b;p=portage.git Make sure doebuild() doesn't erroneously unlink a logfile when returnpid is True. --- diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py index 621d1662d..c4a782c4e 100644 --- a/pym/portage/package/ebuild/doebuild.py +++ b/pym/portage/package/ebuild/doebuild.py @@ -749,7 +749,7 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0, mysettings["DISTDIR"] = mysettings["PORTAGE_ACTUAL_DISTDIR"] del mysettings["PORTAGE_ACTUAL_DISTDIR"] - if logfile: + if logfile and not returnpid: try: if os.stat(logfile).st_size == 0: os.unlink(logfile)