diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-27 03:12:23 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-27 03:12:23 +0000 |
commit | 1886ae22a3c5d004dce4b8307fba4f1c62569d9c (patch) | |
tree | c7d1465c594decb90214dd4dc213b0063fca668c | |
parent | cfa89247a34006a1078a253abc0090fc98cb703d (diff) | |
download | portage-1886ae22a3c5d004dce4b8307fba4f1c62569d9c.tar.gz portage-1886ae22a3c5d004dce4b8307fba4f1c62569d9c.tar.bz2 portage-1886ae22a3c5d004dce4b8307fba4f1c62569d9c.zip |
When copying symlink targets to temp files, use a private temp dir inside
$T instead of using $T directly.
svn path=/main/trunk/; revision=13202
-rwxr-xr-x | bin/ebuild-helpers/doexe | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/ebuild-helpers/doexe b/bin/ebuild-helpers/doexe index 19e80b2d0..a6d679d07 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 |