1 |
Author: zmedico |
2 |
Date: 2008-03-30 09:18:34 +0000 (Sun, 30 Mar 2008) |
3 |
New Revision: 9629 |
4 |
|
5 |
Modified: |
6 |
main/branches/2.1.2/bin/doins |
7 |
Log: |
8 |
Make doins clean up it's own temp files. This solves an odd issue in |
9 |
dyn_package() when portage 2.1.x is installing portage-2.2 and temp |
10 |
python module files from doins are imported instead of the expected |
11 |
ones. (trunk r9628) |
12 |
|
13 |
|
14 |
Modified: main/branches/2.1.2/bin/doins |
15 |
=================================================================== |
16 |
--- main/branches/2.1.2/bin/doins 2008-03-30 09:17:01 UTC (rev 9628) |
17 |
+++ main/branches/2.1.2/bin/doins 2008-03-30 09:18:34 UTC (rev 9629) |
18 |
@@ -28,14 +28,16 @@ |
19 |
[[ ! -d ${D}${INSDESTTREE} ]] && dodir "${INSDESTTREE}" |
20 |
|
21 |
_doins() { |
22 |
- local mysrc="$1" mydir="$2" |
23 |
+ local mysrc="$1" mydir="$2" cleanup="" |
24 |
|
25 |
if [ -L "$mysrc" ] ; then |
26 |
cp "$mysrc" "${T}" |
27 |
mysrc="${T}/${mysrc##*/}" |
28 |
+ cleanup=${mysrc} |
29 |
fi |
30 |
|
31 |
install ${INSOPTIONS} "${mysrc}" "${D}${INSDESTTREE}/${mydir}" |
32 |
+ [[ -n ${cleanup} ]] && rm -f "${cleanup}" |
33 |
} |
34 |
|
35 |
_xdoins() { |
36 |
|
37 |
-- |
38 |
gentoo-commits@l.g.o mailing list |