summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-26 22:19:15 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-26 22:19:15 +0000
commit0e8466dcfded0244061a48b0fbc7b12942fea7d2 (patch)
tree70ed1b309b069bc8e417c4324e605b24a050cadf
parent47ed5d9b291899a591a3d44240b76f5590220ded (diff)
downloadportage-0e8466dcfded0244061a48b0fbc7b12942fea7d2.tar.gz
portage-0e8466dcfded0244061a48b0fbc7b12942fea7d2.tar.bz2
portage-0e8466dcfded0244061a48b0fbc7b12942fea7d2.zip
Make doebuild() use EBUILD_EXIT_STATUS_FILE sanity checks for the
extra misc-functions.sh preinst/postinst shell code. svn path=/main/trunk/; revision=8698
-rw-r--r--pym/portage/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index b6bb08d8e..79e559d69 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -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)