Make doebuild() use EBUILD_EXIT_STATUS_FILE sanity checks for the
authorZac Medico <zmedico@gentoo.org>
Mon, 26 Nov 2007 22:19:55 +0000 (22:19 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 26 Nov 2007 22:19:55 +0000 (22:19 -0000)
extra misc-functions.sh preinst/postinst shell code. (trunk r8698)

svn path=/main/branches/2.1.2/; revision=8699

pym/portage.py

index 21d59e4b8fa551288218235cff563fc430d5d100..a9fe9fc9fea0e5a4657bd9205f785c13fa73517c 100644 (file)
@@ -4280,6 +4280,7 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
                                mysettings["EBUILD_PHASE"] = ""
                                phase_retval = spawn(" ".join(myargs),
                                        mysettings, debug=debug, free=1, logfile=logfile)
+                               phase_retval = exit_status_check(phase_retval)
                                if phase_retval != os.EX_OK:
                                        writemsg("!!! post preinst failed; exiting.\n",
                                                noiselevel=-1)
@@ -4296,6 +4297,7 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
                                mysettings["EBUILD_PHASE"] = ""
                                phase_retval = spawn(" ".join(myargs),
                                        mysettings, debug=debug, free=1, logfile=logfile)
+                               phase_retval = exit_status_check(phase_retval)
                                if phase_retval != os.EX_OK:
                                        writemsg("!!! post postinst failed; exiting.\n",
                                                noiselevel=-1)