summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-08-07 06:33:12 +0000
committerMike Frysinger <vapier@gentoo.org>2005-08-07 06:33:12 +0000
commit8b9247c42a643b4ee043cdacd445d902d0427b91 (patch)
tree955b99a17b02ad188dc322a4dd1eb1aa124deea1 /eclass/games.eclass
parentKeyworded ~ppc-macos. (diff)
downloadgentoo-2-8b9247c42a643b4ee043cdacd445d902d0427b91.tar.gz
gentoo-2-8b9247c42a643b4ee043cdacd445d902d0427b91.tar.bz2
gentoo-2-8b9247c42a643b4ee043cdacd445d902d0427b91.zip
add some directory checks
Diffstat (limited to 'eclass/games.eclass')
-rw-r--r--eclass/games.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/games.eclass b/eclass/games.eclass
index 867e07f85f1f..7acd525220b3 100644
--- a/eclass/games.eclass
+++ b/eclass/games.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.103 2005/07/12 03:26:59 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.104 2005/08/07 06:33:12 vapier Exp $
#
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -111,6 +111,7 @@ prepgamesdirs() {
"${GAMES_SYSCONFDIR}" "${GAMES_STATEDIR}" "${GAMES_LIBDIR}" \
"${GAMES_BINDIR}" "$@"
do
+ [[ ! -d ${D}/${dir} ]] && continue
(
gamesowners -R "${D}/${dir}"
find "${D}/${dir}" -type d -print0 | xargs --null chmod 750
@@ -123,6 +124,7 @@ prepgamesdirs() {
die "refusing to merge a setuid root game"
fi
done
+ [[ -d ${D}/${GAMES_BINDIR} ]] || return 0
find "${D}/${GAMES_BINDIR}" -maxdepth 1 -type f -exec chmod 750 '{}' \;
}