[Lunar-commits] CVS: theedge/bin lvu,1.52,1.53

Chad Kittel v3rt1g0 at lunar-linux.org
Sun Oct 17 23:44:11 UTC 2004


Update of /var/cvs/lunar/theedge/bin
In directory espresso.foo-projects.org:/tmp/cvs-serv12068

Modified Files:
	lvu 
Log Message:
Better handeling of non-existant modules in lvu tree (and its variations).
Now it will tell the user, in the standard way, that the module they asked
about doesn't exists. 


Index: lvu
===================================================================
RCS file: /var/cvs/lunar/theedge/bin/lvu,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- lvu	12 Oct 2004 11:29:06 -0000	1.52
+++ lvu	17 Oct 2004 23:44:09 -0000	1.53
@@ -462,6 +462,13 @@
 function show_tree() {
   debug_msg "show_tree ($@)"
 
+  # Make sure the module exists, print a message and return 1 if it doesn't
+  SECTION=$(find_section $1)
+  if [ -z "$SECTION" ] ; then
+      error_message "${PROBLEM_COLOR}Unable to find module ${MODULE_COLOR}${1}${PROBLEM_COLOR} in ${FILE_COLOR}${MOONBASE}${DEFAULT_COLOR}"
+    return 1
+  fi
+  
   # create dependency tracking file if needed
   if [ -z "$TMP_SEEN" ] ; then
     export TMP_SEEN=$(temp_create "seen")
@@ -582,6 +589,15 @@
 
 
 show_eert() {
+  debug_msg "show_eert ($@)"
+
+  # Make sure the module exists, print a message and return 1 if it doesn't
+  SECTION=$(find_section $1)
+  if [ -z "$SECTION" ] ; then
+    error_message "${PROBLEM_COLOR}Unable to find module ${MODULE_COLOR}${1}${PROBLEM_COLOR} in ${FILE_COLOR}${MOONBASE}${DEFAULT_COLOR}"
+    return 1
+  fi
+		        
   if [ -n "$SHORTTREE" ] ; then
     DEPENDS=$DEPENDS_STATUS
   else



More information about the Lunar-commits mailing list