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

svn path=/main/trunk/; revision=8698

pym/portage/__init__.py

index b6bb08d8ee720f366725eea8e1c07e1133e8929c..79e559d69253120262f9a6dd9904c4debedf7131 100644 (file)
@@ -4321,6 +4321,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)
@@ -4337,6 +4338,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)