summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-11-04 07:35:07 +0000
committerMike Frysinger <vapier@gentoo.org>2003-11-04 07:35:07 +0000
commitb1c1941dd6e735b1f47a392a94adf993ddb20bd2 (patch)
tree31ace87b8dbabff42a61041ae9818e2a282231ff /eclass/games.eclass
parenttry to fix crashes #29114 (diff)
downloadgentoo-2-b1c1941dd6e735b1f47a392a94adf993ddb20bd2.tar.gz
gentoo-2-b1c1941dd6e735b1f47a392a94adf993ddb20bd2.tar.bz2
gentoo-2-b1c1941dd6e735b1f47a392a94adf993ddb20bd2.zip
handle state dir better #31841
Diffstat (limited to 'eclass/games.eclass')
-rw-r--r--eclass/games.eclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/games.eclass b/eclass/games.eclass
index b0ceddd829ab..a2a9bc5af887 100644
--- a/eclass/games.eclass
+++ b/eclass/games.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.52 2003/10/27 21:27:56 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.53 2003/11/04 07:35:07 vapier Exp $
#
# devlist: {vapier,wolf31o2,msterret}@gentoo.org
#
@@ -92,6 +92,13 @@ prepgamesdirs() {
find ${D}/${dir} -type f -print0 | xargs --null chmod o-rwx,g+r
) >& /dev/null
done
+ local f=""
+ for f in `find ${D}/${GAMES_STATEDIR} -type f -printf '%P ' 2>/dev/null` ; do
+ if [ -e "${ROOT}/${GAMES_STATEDIR}/${f}" ] ; then
+ cp -p "${ROOT}/${GAMES_STATEDIR}/${f}" "${D}/${GAMES_STATEDIR}/${f}"
+ touch "${D}/${GAMES_STATEDIR}/${f}"
+ fi
+ done
chmod 750 ${D}/${GAMES_BINDIR}/* >& /dev/null
}