summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-25 06:58:24 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-25 06:58:24 +0000
commitac8de8c5fa8c5172adc42eddae540665f9b2b1c4 (patch)
tree685da4750efccd115b4861748cf364e1e35c5515 /bin
parent01a6bb2dc23ad83b074b495ef96d9e3c5bb4b35c (diff)
downloadportage-ac8de8c5fa8c5172adc42eddae540665f9b2b1c4.tar.gz
portage-ac8de8c5fa8c5172adc42eddae540665f9b2b1c4.tar.bz2
portage-ac8de8c5fa8c5172adc42eddae540665f9b2b1c4.zip
* Load environment.bz2 for the pkg_config() phase.
* Run the "clean" phase if pkg_config() succeeds. (trunk r8651) svn path=/main/branches/2.1.2/; revision=8652
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild.sh2
-rwxr-xr-xbin/emerge8
2 files changed, 8 insertions, 2 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index c28312ec6..566ff8a85 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1601,7 +1601,7 @@ if hasq "depend" "${EBUILD_SH_ARGS}"; then
unset BIN_PATH BIN BODY FUNC_SRC
fi
-if hasq ${EBUILD_PHASE} info prerm setup \
+if hasq ${EBUILD_PHASE} config info prerm setup \
&& [ ! -f "${T}/environment" ] ; then
bzip2 -dc "${EBUILD%/*}"/environment.bz2 > \
"${T}/environment" 2> /dev/null
diff --git a/bin/emerge b/bin/emerge
index ee5b64264..a527c26cc 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -5253,9 +5253,15 @@ def action_config(settings, trees, myopts, myfiles):
print
ebuildpath = trees[settings["ROOT"]]["vartree"].dbapi.findname(pkg)
mysettings = portage.config(clone=settings)
- portage.doebuild(ebuildpath, "config", settings["ROOT"], mysettings,
+ vardb = trees[mysettings["ROOT"]]["vartree"].dbapi
+ debug = mysettings.get("PORTAGE_DEBUG") == "1"
+ retval = portage.doebuild(ebuildpath, "config", mysettings["ROOT"],
+ mysettings,
debug=(settings.get("PORTAGE_DEBUG", "") == 1), cleanup=True,
mydbapi=trees[settings["ROOT"]]["vartree"].dbapi, tree="vartree")
+ if retval == os.EX_OK:
+ portage.doebuild(ebuildpath, "clean", mysettings["ROOT"],
+ mysettings, debug=debug, mydbapi=vardb, tree="vartree")
print
def action_info(settings, trees, myopts, myfiles):