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
commit1aef24f667aa22e7d48a3d5e730648087dcf95bf (patch)
treed9f4b54227ee46edc5398150d0d8c04a927d79cc /eclass/games.eclass
parenttry to fix crashes #29114 (diff)
downloadhistorical-1aef24f667aa22e7d48a3d5e730648087dcf95bf.tar.gz
historical-1aef24f667aa22e7d48a3d5e730648087dcf95bf.tar.bz2
historical-1aef24f667aa22e7d48a3d5e730648087dcf95bf.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
}