View | Details | Raw Unified
Collapse All | Expand All

(-) /home/rl03/gentoo-x86/eclass/webapp.eclass (-15 / +4 lines)
 Lines 37-42    Link Here 
ETC_CONFIG="${ROOT}/etc/vhosts/webapp-config"
ETC_CONFIG="${ROOT}/etc/vhosts/webapp-config"
WEBAPP_CONFIG="${ROOT}/usr/sbin/webapp-config"
WEBAPP_CONFIG="${ROOT}/usr/sbin/webapp-config"
WEBAPP_CLEANER="${ROOT}/usr/bin/webapp-cleaner"
# ------------------------------------------------------------------------
# ------------------------------------------------------------------------
# INTERNAL FUNCTION - USED BY THIS ECLASS ONLY
# INTERNAL FUNCTION - USED BY THIS ECLASS ONLY
 Lines 496-517    Link Here 
		einfo "Running ${my_cmd}"
		einfo "Running ${my_cmd}"
		${my_cmd}
		${my_cmd}
		# remove the old version
		# run webapp-cleaner instead of emerge
		#
		echo
		# why do we do this?  well ...
		${WEBAPP_CLEANER} -p -C ${PN}
		#
		# normally, emerge -u installs a new version and then removes the
		# old version.  however, if the new version goes into a different
		# slot to the old version, then the old version gets left behind
		#
		# if USE=-vhosts, then we want to remove the old version, because
		# the user is relying on portage to do the magical thing for it
		if [ "${IS_UPGRADE}" = "1" ] ; then
			einfo "Removing old version ${REMOVE_PKG}"
			emerge -C "${REMOVE_PKG}"
		fi
	else
	else
		# vhosts flag is on
		# vhosts flag is on
		#
		#