[Webapps-common-discuss] webapps-common/internal common,1.1,1.2

seanius at haydn.debian.org seanius at haydn.debian.org
Sat Jul 30 09:37:10 UTC 2005


Update of /cvsroot/webapps-common/webapps-common/internal
In directory haydn:/org/alioth.debian.org/chroot/home/users/seanius/tmp/cvs-serv26799/internal

Modified Files:
	common 
Log Message:
huge chunk of work on a first stab at implementation.  still incomplete
and unworking, but one of the included baseline packages (-simple) shows
the most work so far.  not worth mentioning to anyone just yet, but i
want to get this in CVS in case something bad happens to my laptop


Index: common
===================================================================
RCS file: /cvsroot/webapps-common/webapps-common/internal/common,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- common	24 May 2005 02:36:47 -0000	1.1
+++ common	30 Jul 2005 09:37:06 -0000	1.2
@@ -2,3 +2,26 @@
 
 # httpd-related stuff
 . /usr/share/webapps-common/internal/httpd
+
+##
+## internal sanity check for certain important variables
+##
+_wc_sanity_check(){
+	while [ "$1" ]; do
+		case "$1" in
+		"package")
+			if [ -z "$wc_package" ]; then
+				wc_error="webapps-common can not determine the name of the package it is configuring."
+				# wc_logline "sanity check failed for dbc_package"
+				return 1
+			fi
+		;;
+		*)
+			wc_error="don't know how to sanity check for '$1'"
+			# wc_logline
+			return 1
+		;;
+		esac
+		shift
+	done
+}




More information about the Webapps-common-discuss mailing list