summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-27 08:21:19 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-27 08:21:19 +0000
commit365f14cb679c09c1c29d0ad130b5e8064f2e1d8d (patch)
tree043653deb312bfe8de575919a3ffc56576c045bb /pym/portage.py
parent31c4e5832a8dc79fdba7308459444fd654a104e4 (diff)
downloadportage-365f14cb679c09c1c29d0ad130b5e8064f2e1d8d.tar.gz
portage-365f14cb679c09c1c29d0ad130b5e8064f2e1d8d.tar.bz2
portage-365f14cb679c09c1c29d0ad130b5e8064f2e1d8d.zip
Don't forget to unlink ${EBUILD_EXIT_STATUS_FILE} before each phase.
(trunk r8706) svn path=/main/branches/2.1.2/; revision=8707
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 9e5b1bed5..9c748aa8b 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -4284,6 +4284,8 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
myargs = [MISC_SH_BINARY, "preinst_bsdflags", "preinst_mask",
"preinst_sfperms", "preinst_selinux_labels",
"preinst_suid_scan"]
+ _doebuild_exit_status_unlink(
+ mysettings.get("EBUILD_EXIT_STATUS_FILE"))
mysettings["EBUILD_PHASE"] = ""
phase_retval = spawn(" ".join(myargs),
mysettings, debug=debug, free=1, logfile=logfile)
@@ -4301,6 +4303,8 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
# Post phase logic and tasks that have been factored out of
# ebuild.sh.
myargs = [MISC_SH_BINARY, "postinst_bsdflags"]
+ _doebuild_exit_status_unlink(
+ mysettings.get("EBUILD_EXIT_STATUS_FILE"))
mysettings["EBUILD_PHASE"] = ""
phase_retval = spawn(" ".join(myargs),
mysettings, debug=debug, free=1, logfile=logfile)