[Lunar-commits] r26922 - lunar/trunk/var/lib/lunar/plugins

Stefan Wold ratler at lunar-linux.org
Mon Nov 26 11:41:44 CET 2007


Author: ratler
Date: 2007-11-26 11:41:44 +0100 (Mon, 26 Nov 2007)
New Revision: 26922

Modified:
   lunar/trunk/var/lib/lunar/plugins/check-md5sum.plugin
Log:
Fixing it again. Now it actually work. No need to check if executable or not
when we already know it failed md5sum.


Modified: lunar/trunk/var/lib/lunar/plugins/check-md5sum.plugin
===================================================================
--- lunar/trunk/var/lib/lunar/plugins/check-md5sum.plugin	2007-11-26 07:08:19 UTC (rev 26921)
+++ lunar/trunk/var/lib/lunar/plugins/check-md5sum.plugin	2007-11-26 10:41:44 UTC (rev 26922)
@@ -32,12 +32,10 @@
             grep -v "/doc/\|/etc/\|/fonts/\|/man/\|/var/" |
             while read LINE ; do
       if ! echo $LINE | md5sum --check --status ; then
-        if [ -f "$FILE" ] && [ ! -h "$FILE" ] && file -b "$FILE" |
-              egrep -q "executable|shared object|current ar archive" ; then
-          if ! grep -q "$LINE" $MD5_LOG ; then
-            message "${FILE_COLOR}$FILE${DEFAULT_COLOR} of ${MODULE_COLOR}$MODULE${PROBLEM_COLOR} has wrong md5sum.${DEFAULT_COLOR}"
-            MD5SUM_STATUS=1
-          fi
+        FILE=$(echo $LINE | awk '{ print $2 }')
+        if [ -f "$FILE" ] && [ ! -h "$FILE" ]; then
+          message "${FILE_COLOR}$FILE${DEFAULT_COLOR} of ${MODULE_COLOR}$MODULE${PROBLEM_COLOR} has wrong md5sum.${DEFAULT_COLOR}"
+          MD5SUM_STATUS=1
         fi
       fi
     done



More information about the Lunar-commits mailing list