CVS: theedge/sbin lunar,1.18,1.19

sofar at lunar-linux.org sofar at lunar-linux.org
Sun Jul 20 17:18:04 GMT 2003


Update of /var/cvs/lunar/theedge/sbin
In directory dbguin.lunar-linux.org:/tmp/cvs-serv24750/sbin

Modified Files:
	lunar 
Log Message:
fixing hold menu.


Index: lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/sbin/lunar,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- lunar	14 Jul 2003 22:38:20 -0000	1.18
+++ lunar	20 Jul 2003 17:18:02 -0000	1.19
@@ -62,7 +62,7 @@
            --cancel-label  "Exit"            \
            --menu                            \
            ""                                \
-           0 0 10                            \
+           0 40 15                           \
            `show_sections`
 }
 
@@ -236,28 +236,22 @@
 
 
 make_hold_checklist()  {
-  for  LINE in `sort  $MODULE_STATUS_BACKUP`;  do
-     MODULE=`echo  "$LINE"  |  cut  -d : -f1`
-     STATUS=`echo  "$LINE"  |  cut  -d : -f3`
-    VERSION=`echo  "$LINE"  |  cut  -d : -f4`
-
-    if  [  "$STATUS"  ==  "installed"  ]   ||
-        [  "$STATUS"  ==  "held"       ];  then
-
-      [  "$STATUS"  ==  "held"  ]  &&
-      HELD="on"                    ||
-      HELD="off"
-
-      if  SECTION=`find_section  $MODULE`;  then
-        SHORT="Short Description Unavailable"
-	run_module_file $MODULE DETAILS &> /dev/null
-
-        echo  $MODULE
-        echo  $VERSION
-        echo  $HELD
-        echo  $SHORT
+  for LINE in $(sort $MODULE_STATUS_BACKUP) ; do
+  (
+    MODULE=$(echo "$LINE" | cut -d: -f1)
+    STATUS=$(echo "$LINE" | cut -d: -f3)
+    VERSION=$(echo "$LINE" | cut -d: -f4)
+    if [ "$STATUS" == "installed" ] || [ "$STATUS" == "held" ] ; then
+      [ "$STATUS" == "held" ] && HELD="on" || HELD="off"
+      SHORT="Short description unavailable"
+      if run_details $MODULE &> /dev/null ; then
+        echo $MODULE
+        echo $VERSION
+        echo $HELD
+        echo $SHORT
       fi
     fi
+  )
   done
 }
 




More information about the Lunar-commits mailing list