From ff52f9dc31004becb8022e6437088d01917f413c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 7 Dec 2011 22:22:31 -0800 Subject: Make USE=prefix enable EPREFIX in all EAPIs. This is safe because the prefix flag should be masked in all non-prefix profiles, and older EAPIs would otherwise be useless with prefix configurations. This brings compatibility with the prefix branch of portage, which also supports EPREFIX for all EAPIs (for obvious reasons). --- bin/ebuild-helpers/dosym | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/ebuild-helpers/dosym') diff --git a/bin/ebuild-helpers/dosym b/bin/ebuild-helpers/dosym index 8b7b304ee..8925001e4 100755 --- a/bin/ebuild-helpers/dosym +++ b/bin/ebuild-helpers/dosym @@ -9,7 +9,8 @@ if [[ $# -ne 2 ]] ; then exit 1 fi -case "$EAPI" in 0|1|2) ED=${D} ;; esac +[[ " ${USE} " == *" prefix "* ]] || \ + case "$EAPI" in 0|1|2) ED=${D} ;; esac if [[ ${2} == */ ]] || \ [[ -d ${ED}${2} && ! -L ${ED}${2} ]] ; then -- cgit v1.2.3-1-g7c22