[Lunar-commits] r15896 - lunar-tools/trunk/lids

Auke Kok sofar at lunar-linux.org
Wed Jul 27 10:32:11 UTC 2005


Author: sofar
Date: 2005-07-27 10:32:09 +0000 (Wed, 27 Jul 2005)
New Revision: 15896

Modified:
   lunar-tools/trunk/lids/lids
Log:
Fixing proper permission file paths (now include module version numbers).


Modified: lunar-tools/trunk/lids/lids
===================================================================
--- lunar-tools/trunk/lids/lids	2005-07-27 09:53:11 UTC (rev 15895)
+++ lunar-tools/trunk/lids/lids	2005-07-27 10:32:09 UTC (rev 15896)
@@ -22,6 +22,8 @@
 # <permissions> may be numeric [0755] or ls -l type [-rwxrx----]
 #
 
+PERM_DIR=/var/log/lunar/permissions
+
 function freeform2numeric () {
   ((PERM=0))
   # translate -rwxrw-rw- to 0766
@@ -75,7 +77,7 @@
  fi
  
  for MODULE in $MODULES ; do
-  FILE=/var/log/lunar/permissions/$MODULE-$(installed_version $MODULE)
+  FILE=$PERM_DIR/$MODULE-$(installed_version $MODULE)
   if [ -e "$FILE" ] ; then
     verbose_msg "checking permissions for \"$MODULE\""
     # echo "$FILE: processing"
@@ -135,16 +137,16 @@
     MODULES="$@"
   fi
 
-  if [ ! -d /var/log/lunar/permissions ] ; then
-    mkdir -p /var/log/lunar/permissions
+  if [ ! -d $PERM_DIR ] ; then
+    mkdir -p $PERM_DIR
   fi
   
   for MODULE in $MODULES ; do
     verbose_msg "generating permission file for \"$MODULE\""
-    INFILE=/var/log/lunar/install/$MODULE-$(installed_version $MODULE)
+    INFILE=$INSTALL_LOGS/$MODULE-$(installed_version $MODULE)
     # we do not use the version in here to allow permissions to be saved
     # between upgrades
-    OUTFILE=/var/log/lunar/permissions/$MODULE
+    OUTFILE=$PERM_DIR/$MODULE-$(installed_version $MODULE)
     if [ -f $INFILE ] ; then
       while read FNAME ; do
         if [ -e "$FNAME" -a ! -L "$FNAME" ] ; then
@@ -179,7 +181,7 @@
 
   for MODULE in $MODULES ; do
     verbose_msg "checking md5sums for \"$MODULE\""
-    plugin_module_check_md5sum $MODULE
+    md5sum_check $MODULE
   done
 }
 



More information about the Lunar-commits mailing list