[Lunar-commits] CVS: theedge/var/lib/lunar/functions tracking.lunar, 1.11, 1.12

Auke Kok sofar at lunar-linux.org
Sun Mar 14 21:43:34 GMT 2004


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

Modified Files:
	tracking.lunar 
Log Message:
Major lrm/exluded/protected rewrite:
- allow re's in excluded/protected
- true protected directories with recursion
- excluded ONLY contains stuff that we DO NOT WANT TO SEE in the install logs
- lvu alien adjusted too
- track() function adjusted and simplified
- removed unneeded lrm tmpfiles and loops, simplified


Index: tracking.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/tracking.lunar,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- tracking.lunar	3 Mar 2004 21:51:07 -0000	1.11
+++ tracking.lunar	14 Mar 2004 21:43:32 -0000	1.12
@@ -56,11 +56,10 @@
 # purpose  : remove unwanted accesses from the installwatch file
 parse_iw() {
   debug_msg "parse_iw ($@)"
-  OMIT="^/dev\|^/tmp\|^/usr/src"
   OMIT_IN="	rename\|	symlink\|	unlink"
 
-  grep -v "$OMIT_IN" $INSTALLWATCHFILE | cut -f3 | grep -v "$OMIT"
-  cat                $INSTALLWATCHFILE | cut -f4 | grep -v "$OMIT" | grep "^/"
+  grep -v "$OMIT_IN" $INSTALLWATCHFILE | cut -f3 | grep -v -f $EXCLUDED
+  cat                $INSTALLWATCHFILE | cut -f4 | grep -v -f $EXCLUDED | grep "^/"
 }
 
 
@@ -80,13 +79,7 @@
 
   export IFS="$TAB_ENTER_IFS"
 
-  parse_iw                   |
-  sort                       |
-  uniq                       |
-  filter  "$EXCLUDED"        |
-  filter  "$LOCAL_EXCLUDED"  |
-  exists                     >  $TMP_INST_LOG
-
+  parse_iw | sort | uniq | filter  "$LOCAL_EXCLUDED" | exists > $TMP_INST_LOG
   echo "$INSTALL_LOGS/$MOD_V_SNAME-$VERSION"                 >> $TMP_INST_LOG
   echo "$COMPILE_LOGS/$MOD_V_SNAME-$VERSION.bz2"             >> $TMP_INST_LOG
   echo "$MD5SUM_LOGS/$MOD_V_SNAME-$VERSION"                  >> $TMP_INST_LOG



More information about the Lunar-commits mailing list