summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-11-26 07:36:46 +0000
committerMike Frysinger <vapier@gentoo.org>2011-11-26 07:36:46 +0000
commit498382d654a28ed7adc70a08ec8653bbe54b5fd6 (patch)
treee5e1ee6707e930289e28a79d9e9a272b3828f658 /eclass
parentMove enew{user,group} to pkg_preinst so `die` works. (diff)
downloadgentoo-2-498382d654a28ed7adc70a08ec8653bbe54b5fd6.tar.gz
gentoo-2-498382d654a28ed7adc70a08ec8653bbe54b5fd6.tar.bz2
gentoo-2-498382d654a28ed7adc70a08ec8653bbe54b5fd6.zip
use egetshell helper from user eclass
Diffstat (limited to 'eclass')
-rw-r--r--eclass/games.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/games.eclass b/eclass/games.eclass
index aae12a302a65..42b7822ee292 100644
--- a/eclass/games.eclass
+++ b/eclass/games.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.143 2011/03/22 17:20:50 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.144 2011/11/26 07:36:46 vapier Exp $
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -8,7 +8,7 @@
# you better have a *good* reason why you're *not* using games.eclass
# in a games-* ebuild
-inherit base multilib toolchain-funcs eutils
+inherit base multilib toolchain-funcs eutils user
case ${EAPI:-0} in
0|1) EXPORT_FUNCTIONS pkg_setup src_compile pkg_preinst pkg_postinst ;;
@@ -134,7 +134,7 @@ games_pkg_setup() {
# Dear portage team, we are so sorry. Lots of love, games team.
# See Bug #61680
[[ ${USERLAND} != "GNU" ]] && return 0
- [[ $(getent passwd "${GAMES_USER_DED}" | cut -f7 -d:) == "/bin/false" ]] \
+ [[ $(egetshell "${GAMES_USER_DED}") == "/bin/false" ]] \
&& usermod -s /bin/bash "${GAMES_USER_DED}"
}