summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorRenat Lumpau <rl03@gentoo.org>2006-07-11 02:36:23 +0000
committerRenat Lumpau <rl03@gentoo.org>2006-07-11 02:36:23 +0000
commit3c82f288128a91166d3ea969253013f6e774128d (patch)
treedfcad662b44644d512da7cc5f26a339b216491be /eclass
parentInitial import. Closes Bug #128843. See changelog for more info. (diff)
downloadhistorical-3c82f288128a91166d3ea969253013f6e774128d.tar.gz
historical-3c82f288128a91166d3ea969253013f6e774128d.tar.bz2
historical-3c82f288128a91166d3ea969253013f6e774128d.zip
Remove user-visible SLOT warning from webapp.eclass
Diffstat (limited to 'eclass')
-rw-r--r--eclass/webapp.eclass16
1 files changed, 4 insertions, 12 deletions
diff --git a/eclass/webapp.eclass b/eclass/webapp.eclass
index e1d38d980288..ffc1622cb02c 100644
--- a/eclass/webapp.eclass
+++ b/eclass/webapp.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/webapp.eclass,v 1.43 2006/07/10 00:52:34 rl03 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v 1.44 2006/07/11 02:36:23 rl03 Exp $
#
# eclass/webapp.eclass
# Eclass for installing applications to run under a web server
@@ -352,17 +352,9 @@ function webapp_pkg_setup ()
{
# add sanity checks here
- if [ "${SLOT}+" != "${PVR}+" ]; then
- # special case - some ebuilds *do* need to overwride the SLOT
- if [ "${WEBAPP_MANUAL_SLOT}" != "yes" ]; then
- die "ebuild sets SLOT, overrides webapp.eclass"
- else
- ewarn
- ewarn "This ebuild overrides the default SLOT behaviour for webapps"
- ewarn "If this package installs files into the htdocs dir, this is"
- ewarn "probably a bug in the ebuild."
- ewarn
- fi
+ # special case - some ebuilds *do* need to overwride the SLOT
+ if [[ "${SLOT}+" != "${PVR}+" && "${WEBAPP_MANUAL_SLOT}" != "yes" ]]; then
+ die "Set WEBAPP_MANUAL_SLOT=\"yes\" if you need to SLOT manually"
fi
# pull in the shared configuration file