summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-03-09 21:51:40 +0000
committerZac Medico <zmedico@gentoo.org>2006-03-09 21:51:40 +0000
commitec7736adf6611370d7afaf3be0c1e03eda11d13a (patch)
treefc5dae950c7ccedd204b66b4e47b619227190ad5 /pym
parent75d123cbf41296297ba690ecc08cb8b169b9e5e6 (diff)
downloadportage-ec7736adf6611370d7afaf3be0c1e03eda11d13a.tar.gz
portage-ec7736adf6611370d7afaf3be0c1e03eda11d13a.tar.bz2
portage-ec7736adf6611370d7afaf3be0c1e03eda11d13a.zip
Move the install phase qa checks from ebuild.sh to misc-functions.sh and add the necessary support to spawnebuild.
svn path=/main/trunk/; revision=2837
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 07b583b1f..5fc70a7de 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2373,10 +2373,18 @@ def spawnebuild(mydo,actionmap,mysettings,debug,alwaysdep=0,logfile=None):
mycommand = MISC_SH_BINARY + " dyn_" + mydo
else:
mycommand = EBUILD_SH_BINARY + " " + mydo
- return spawn(mycommand, mysettings, debug=debug,
+ phase_retval = spawn(mycommand, mysettings, debug=debug,
droppriv=actionmap[mydo]["args"][0],
free=actionmap[mydo]["args"][1],
sesandbox=actionmap[mydo]["args"][2], logfile=logfile)
+ if phase_retval == os.EX_OK:
+ if mydo == "install":
+ mycommand = " ".join([MISC_SH_BINARY, "install_qa_check"])
+ return spawn(mycommand, mysettings, debug=debug,
+ droppriv=actionmap[mydo]["args"][0],
+ free=actionmap[mydo]["args"][1],
+ sesandbox=actionmap[mydo]["args"][2], logfile=logfile)
+ return phase_retval
# chunked out deps for each phase, so that ebuild binary can use it
# to collapse targets down.