summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2018-01-18 12:33:58 -0500
committerBrian Evans <grknight@gentoo.org>2018-01-18 12:33:58 -0500
commitd74e991536d896ce95834a031882f375f747fb2d (patch)
tree062085e0f3929fce18d18b16c8b44a97dbf54653 /profiles
parentdev-python/keyring: 10.5.1 stable amd64 and x86 (diff)
downloadgentoo-d74e991536d896ce95834a031882f375f747fb2d.tar.gz
gentoo-d74e991536d896ce95834a031882f375f747fb2d.tar.bz2
gentoo-d74e991536d896ce95834a031882f375f747fb2d.zip
default/linux/amd64/17.1/profile.bashrc: Check setup phase
The reason to check this phase is that cleanup is safe and die hooks are set in portage (if any). This also gives a resonable error message to anyone with --quiet-build=y in portage
Diffstat (limited to 'profiles')
-rw-r--r--profiles/default/linux/amd64/17.1/profile.bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/profiles/default/linux/amd64/17.1/profile.bashrc b/profiles/default/linux/amd64/17.1/profile.bashrc
index e8fc95af773d..44dc51c55408 100644
--- a/profiles/default/linux/amd64/17.1/profile.bashrc
+++ b/profiles/default/linux/amd64/17.1/profile.bashrc
@@ -1,4 +1,4 @@
-if [[ -L ${ROOT%/}/lib || -L ${ROOT%/}/usr/lib ]] ; then
+if [[ "${EBUILD_PHASE}" == "setup" ]] && [[ -L ${ROOT%/}/lib || -L ${ROOT%/}/usr/lib ]] ; then
eerror "Please follow the instructions in the news item:"
eerror "2017-12-26-experimental-amd64-17-1-profiles"
eerror "or choose the 17.0 profile."