1 |
nyhm 08/12/01 20:36:43 |
2 |
|
3 |
Modified: games.eclass |
4 |
Log: |
5 |
patch from Davide Pesavento to fix word splitting issues, bug #241666 |
6 |
|
7 |
Revision Changes Path |
8 |
1.129 eclass/games.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.129&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.129&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.128&r2=1.129 |
13 |
|
14 |
Index: games.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v |
17 |
retrieving revision 1.128 |
18 |
retrieving revision 1.129 |
19 |
diff -u -r1.128 -r1.129 |
20 |
--- games.eclass 28 Sep 2008 23:40:23 -0000 1.128 |
21 |
+++ games.eclass 1 Dec 2008 20:36:43 -0000 1.129 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2008 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.128 2008/09/28 23:40:23 nyhm Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.129 2008/12/01 20:36:43 nyhm Exp $ |
27 |
|
28 |
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@g.o |
29 |
# |
30 |
@@ -152,7 +152,7 @@ |
31 |
games_pkg_preinst() { |
32 |
local f |
33 |
|
34 |
- for f in $(find "${D}/${GAMES_STATEDIR}" -type f -printf '%P ' 2>/dev/null) ; do |
35 |
+ while read f ; do |
36 |
if [[ -e ${ROOT}/${GAMES_STATEDIR}/${f} ]] ; then |
37 |
cp -p \ |
38 |
"${ROOT}/${GAMES_STATEDIR}/${f}" \ |
39 |
@@ -161,7 +161,7 @@ |
40 |
# make the date match the rest of the install |
41 |
touch "${D}/${GAMES_STATEDIR}/${f}" |
42 |
fi |
43 |
- done |
44 |
+ done < <(find "${D}/${GAMES_STATEDIR}" -type f -printf '%P\n' 2>/dev/null) |
45 |
} |
46 |
|
47 |
# pkg_postinst function ... create env.d entry and warn about games group |
48 |
@@ -197,11 +197,11 @@ |
49 |
|| die "uncompressing file ${ut_unpack}" |
50 |
fi |
51 |
if [[ -d ${ut_unpack} ]] ; then |
52 |
- for f in $(find "${ut_unpack}" -name '*.uz2' -printf '%f ') ; do |
53 |
- uz2unpack "${ut_unpack}/${f}" "${ut_unpack}/${f/.uz2}" &>/dev/null \ |
54 |
+ while read f ; do |
55 |
+ uz2unpack "${ut_unpack}/${f}" "${ut_unpack}/${f%.uz2}" &>/dev/null \ |
56 |
|| die "uncompressing file ${f}" |
57 |
rm -f "${ut_unpack}/${f}" || die "deleting compressed file ${f}" |
58 |
- done |
59 |
+ done < <(find "${ut_unpack}" -maxdepth 1 -name '*.uz2' -printf '%f\n' 2>/dev/null) |
60 |
fi |
61 |
} |
62 |
|
63 |
@@ -224,11 +224,11 @@ |
64 |
games_link_mods() { |
65 |
if [[ -e ${GAMES_DATADIR}/${GAME} ]] ; then |
66 |
cd "${GAMES_DATADIR}/${GAME}" |
67 |
- for mod in $(find . -type d -printf '%P ') ; do |
68 |
+ while read mod ; do |
69 |
if [[ ! -e ${Ddir}/${mod} ]] ; then |
70 |
elog "Creating symlink for ${mod}" |
71 |
dosym "${GAMES_DATADIR}"/${GAME}/${mod} "${dir}"/${mod} || die |
72 |
fi |
73 |
- done |
74 |
+ done < <(find . -type d -printf '%P\n' 2>/dev/null) |
75 |
fi |
76 |
} |