From 5729491242cb2be1b5fa8de1bc2761d4e26dca2b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 17 Aug 2010 00:23:36 -0700 Subject: [PATCH] Make sure doebuild() doesn't erroneously unlink a logfile when returnpid is True. --- pym/portage/package/ebuild/doebuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2