summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-27 04:33:13 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-27 04:33:13 +0000
commit508b12e85e628eca1919b4a89062a462402ab9ab (patch)
treeac6f5b6b8d0c765e1ef130ab2bc69e9d81039948 /bin/ebuild-helpers
parentFor consistency in output with other helpers, check for file existence (diff)
downloadportage-multirepo-508b12e85e628eca1919b4a89062a462402ab9ab.tar.gz
portage-multirepo-508b12e85e628eca1919b4a89062a462402ab9ab.tar.bz2
portage-multirepo-508b12e85e628eca1919b4a89062a462402ab9ab.zip
When copying symlink targets to temp files, use a private temp dir inside
$T instead of using $T directly. (trunk r13202) svn path=/main/branches/2.1.6/; revision=13221
Diffstat (limited to 'bin/ebuild-helpers')
-rwxr-xr-xbin/ebuild-helpers/doexe9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/ebuild-helpers/doexe b/bin/ebuild-helpers/doexe
index 19e80b2d..a6d679d0 100755
--- a/bin/ebuild-helpers/doexe
+++ b/bin/ebuild-helpers/doexe
@@ -14,12 +14,15 @@ if [[ ! -d ${D}${_E_EXEDESTTREE_} ]] ; then
install -d "${D}${_E_EXEDESTTREE_}"
fi
+TMP=$T/.doexe_tmp
+mkdir "$TMP"
+
ret=0
for x in "$@" ; do
if [ -L "${x}" ] ; then
- cp "${x}" "${T}"
- mysrc="$T/${x##*/}"
+ cp "$x" "$TMP"
+ mysrc=$TMP/${x##*/}
elif [ -d "${x}" ] ; then
vecho "doexe: warning, skipping directory ${x}"
continue
@@ -35,4 +38,6 @@ for x in "$@" ; do
((ret+=$?))
done
+rm -rf "$TMP"
+
exit $ret