diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-08-17 00:23:36 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-17 00:23:36 -0700 |
commit | 5729491242cb2be1b5fa8de1bc2761d4e26dca2b (patch) | |
tree | 2f0cc1840739eaf6553fd90f12a900cca9801121 | |
parent | 81bf93ee53524ca403058506d307a8d9109df57a (diff) | |
download | portage-5729491242cb2be1b5fa8de1bc2761d4e26dca2b.tar.gz portage-5729491242cb2be1b5fa8de1bc2761d4e26dca2b.tar.bz2 portage-5729491242cb2be1b5fa8de1bc2761d4e26dca2b.zip |
Make sure doebuild() doesn't erroneously unlink a logfile when returnpid
is True.
-rw-r--r-- | pym/portage/package/ebuild/doebuild.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |