CVS: theedge/var/lib/lunar/functions depends.lunar,1.18,1.19

elaine at lunar-linux.org elaine at lunar-linux.org
Sun Nov 2 02:25:02 GMT 2003


Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv346

Modified Files:
	depends.lunar 
Log Message:
Added install-status to opt-deps query and clarified the query text


Index: depends.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/depends.lunar,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- depends.lunar	4 Oct 2003 20:19:43 -0000	1.18
+++ depends.lunar	2 Nov 2003 02:25:00 -0000	1.19
@@ -162,8 +162,13 @@
 	else
           DEFAULT="n"
         fi
-                                                                                
-	if query  "Install optional dependency $1 $4? " $DEFAULT ; then
+
+	if module_installed $1 ; then
+	  DEPMOD_AVAIL="${MESSAGE_COLOR}(presently installed)${QUERY_COLOR}"
+	else
+	  DEPMOD_AVAIL="${PROBLEM_COLOR}(Install, not yet installed)${QUERY_COLOR}"
+	fi
+	if query  "Use $DEPMOD_AVAIL optional dependency $1 $4? " $DEFAULT ; then
           lin  --deps  $1
           add_depends  "$MODULE"  "$1"  "on"   "optional"  "$2"  "$3"
         else




More information about the Lunar-commits mailing list