summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers/doexe
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-08-31 19:52:58 -0700
committerZac Medico <zmedico@gentoo.org>2011-08-31 19:52:58 -0700
commitce501b36d7078db059c606d3b4f38637ad09528e (patch)
tree6b60a4a21d020516d6158bbb580ff219e4e0a2f6 /bin/ebuild-helpers/doexe
parent6b8855016820fb84bac25720d99bf8e42c9e9469 (diff)
downloadportage-ce501b36d7078db059c606d3b4f38637ad09528e.tar.gz
portage-ce501b36d7078db059c606d3b4f38637ad09528e.tar.bz2
portage-ce501b36d7078db059c606d3b4f38637ad09528e.zip
xml/metadata: implement XMLParser.doctype()
Avoid deprecation warnings again, like in commit 63035acd702ab0cdaac31e33676b5a20a91eae47.
Diffstat (limited to 'bin/ebuild-helpers/doexe')
-rwxr-xr-xbin/ebuild-helpers/doexe8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/ebuild-helpers/doexe b/bin/ebuild-helpers/doexe
index 360800e02..f44cfba34 100755
--- a/bin/ebuild-helpers/doexe
+++ b/bin/ebuild-helpers/doexe
@@ -9,8 +9,10 @@ if [[ $# -lt 1 ]] ; then
exit 1
fi
-if [[ ! -d ${D}${_E_EXEDESTTREE_} ]] ; then
- install -d "${D}${_E_EXEDESTTREE_}"
+case "$EAPI" in 0|1|2) ED=${D} ;; esac
+
+if [[ ! -d ${ED}${_E_EXEDESTTREE_} ]] ; then
+ install -d "${ED}${_E_EXEDESTTREE_}"
fi
TMP=$T/.doexe_tmp
@@ -29,7 +31,7 @@ for x in "$@" ; do
mysrc="${x}"
fi
if [ -e "$mysrc" ] ; then
- install $EXEOPTIONS "$mysrc" "$D$_E_EXEDESTTREE_"
+ install $EXEOPTIONS "$mysrc" "$ED$_E_EXEDESTTREE_"
else
echo "!!! ${0##*/}: $mysrc does not exist" 1>&2
false