projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfa8924
)
When copying symlink targets to temp files, use a private temp dir inside
author
Zac Medico
<zmedico@gentoo.org>
Fri, 27 Mar 2009 03:12:23 +0000
(
03:12
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 27 Mar 2009 03:12:23 +0000
(
03:12
-0000)
$T instead of using $T directly.
svn path=/main/trunk/; revision=13202
bin/ebuild-helpers/doexe
patch
|
blob
|
history
diff --git
a/bin/ebuild-helpers/doexe
b/bin/ebuild-helpers/doexe
index 19e80b2d01c0e129090ddfae349d1b6f3933a800..a6d679d07991bccc82bda236d9896dcd6ad67e1c 100755
(executable)
--- 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