summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers/dosbin
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ebuild-helpers/dosbin')
-rwxr-xr-xbin/ebuild-helpers/dosbin3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ebuild-helpers/dosbin b/bin/ebuild-helpers/dosbin
index d0783ed33..560607754 100755
--- a/bin/ebuild-helpers/dosbin
+++ b/bin/ebuild-helpers/dosbin
@@ -9,7 +9,8 @@ if [[ $# -lt 1 ]] ; 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 [[ ! -d ${ED}${DESTTREE}/sbin ]] ; then
install -d "${ED}${DESTTREE}/sbin" || { helpers_die "${0##*/}: failed to install ${ED}${DESTTREE}/sbin"; exit 2; }