[Lunar-commits] CVS: theedge/sbin lrm,1.22,1.23

Auke Kok sofar at lunar-linux.org
Mon Mar 29 15:18:15 GMT 2004


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

Modified Files:
	lrm 
Log Message:
Adding REAP back, somehow it had disappeared.


Index: lrm
===================================================================
RCS file: /var/cvs/lunar/theedge/sbin/lrm,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- lrm	18 Mar 2004 12:16:55 -0000	1.22
+++ lrm	29 Mar 2004 15:18:13 -0000	1.23
@@ -156,18 +156,21 @@
 
   # grep -v the install logs over the protected stuff, this
   # yields the files that may be removed
-  cat $INST_LOG | grep -v -f $PROTECTED | while read TARGET ; do
-    if [ -e "$TARGET" ] ; then
-      if [ -d "$TARGET" ] ; then
-        echo "$TARGET" >> $TMP_DIRS
-      else
-        handle_config_files $TARGET &&
-        remove_something $TARGET
+  if [ "$REAP" == "on" ] ; then
+    cat $INST_LOG | grep -v -f $PROTECTED | while read TARGET ; do
+      if [ -e "$TARGET" ] ; then
+        if [ -d "$TARGET" ] ; then
+          echo "$TARGET" >> $TMP_DIRS
+        else
+          handle_config_files $TARGET &&
+          remove_something $TARGET
+        fi
       fi
-    fi
-  done
-
-  process_directories $TMP_DIRS
+    done
+    process_directories $TMP_DIRS
+  else
+    verbose_msg "Skipping removal of files completely (REAP=$REAP)"
+  fi
 
   # time-out 2: POST_REMOVE
   run_module_file $MODULE POST_REMOVE



More information about the Lunar-commits mailing list