summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-04-07 08:52:46 +0000
committerMike Frysinger <vapier@gentoo.org>2007-04-07 08:52:46 +0000
commite12b6a2df1810b088105d609bdbfc2e727ca0457 (patch)
tree1cae7713381bf4b90b28571622d6e21914f6d7c3 /eclass/games.eclass
parentstable amd64, bug 169830 (diff)
downloadgentoo-2-e12b6a2df1810b088105d609bdbfc2e727ca0457.tar.gz
gentoo-2-e12b6a2df1810b088105d609bdbfc2e727ca0457.tar.bz2
gentoo-2-e12b6a2df1810b088105d609bdbfc2e727ca0457.zip
replace INSDESTTREE/INSOPTIONS with subshells and insinto/insopts
Diffstat (limited to 'eclass/games.eclass')
-rw-r--r--eclass/games.eclass16
1 files changed, 8 insertions, 8 deletions
diff --git a/eclass/games.eclass b/eclass/games.eclass
index 403220116693..a1f98e1d1925 100644
--- a/eclass/games.eclass
+++ b/eclass/games.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.120 2007/03/27 01:48:01 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.121 2007/04/07 08:52:46 vapier Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -63,13 +63,13 @@ egamesinstall() {
}
gameswrapper() {
- local oldtree=${DESTTREE}
- into "${GAMES_PREFIX}"
- local cmd=$1; shift
- ${cmd} "$@"
- local ret=$?
- into "${oldtree}"
- return ${ret}
+ # dont want to pollute calling env
+ (
+ into "${GAMES_PREFIX}"
+ cmd=$1
+ shift
+ ${cmd} "$@"
+ )
}
dogamesbin() { gameswrapper ${FUNCNAME/games} "$@"; }