Don't forget to unlink ${EBUILD_EXIT_STATUS_FILE} before each phase.
authorZac Medico <zmedico@gentoo.org>
Tue, 27 Nov 2007 08:20:58 +0000 (08:20 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 27 Nov 2007 08:20:58 +0000 (08:20 -0000)
svn path=/main/trunk/; revision=8706

pym/portage/__init__.py

index c66a1ab33a13bb38798697ba2cc4cc2c157ac8d4..b6b0e0c0e893ed6087572a2a358f9999875bb787 100644 (file)
@@ -4325,6 +4325,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)
@@ -4342,6 +4344,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)