diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-11-26 06:42:07 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-11-26 06:42:07 +0000 |
commit | 2ea2a6e6c52e0e8998a6d5c46818ee43d3a95c90 (patch) | |
tree | abf8c0af327f0b4e578556ea7f3321c090a5914e /eclass | |
parent | No more direct download possible, upstream has implemented mandatory clickthr... (diff) | |
download | gentoo-2-2ea2a6e6c52e0e8998a6d5c46818ee43d3a95c90.tar.gz gentoo-2-2ea2a6e6c52e0e8998a6d5c46818ee43d3a95c90.tar.bz2 gentoo-2-2ea2a6e6c52e0e8998a6d5c46818ee43d3a95c90.zip |
restrict enew{user,group} to pkg_{setup,preinst,postinst}
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/user.eclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/user.eclass b/eclass/user.eclass index 575bb685faa2..f38e4803631d 100644 --- a/eclass/user.eclass +++ b/eclass/user.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/user.eclass,v 1.10 2011/11/04 13:08:23 naota Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/user.eclass,v 1.11 2011/11/26 06:42:07 vapier Exp $ # @ECLASS: user.eclass # @MAINTAINER: @@ -18,7 +18,8 @@ # @USAGE: <calling func name> _assert_pkg_ebuild_phase() { case ${EBUILD_PHASE} in - unpack|prepare|configure|compile|test|install) + setup|preinst|postinst) ;; + *) eerror "'$1()' called from '${EBUILD_PHASE}()' which is not a pkg_* function." eerror "Package fails at QA and at life. Please file a bug." die "Bad package! $1 is only for use in pkg_* functions!" |