[Lunar-commits] r26920 - lunar/trunk/var/lib/lunar/plugins
Auke Kok
sofar at lunar-linux.org
Mon Nov 26 07:58:15 CET 2007
Author: sofar
Date: 2007-11-26 07:58:15 +0100 (Mon, 26 Nov 2007)
New Revision: 26920
Modified:
lunar/trunk/var/lib/lunar/plugins/check-md5sum.plugin
Log:
Minor non-bug fixes and cleanups
Modified: lunar/trunk/var/lib/lunar/plugins/check-md5sum.plugin
===================================================================
--- lunar/trunk/var/lib/lunar/plugins/check-md5sum.plugin 2007-11-26 05:06:47 UTC (rev 26919)
+++ lunar/trunk/var/lib/lunar/plugins/check-md5sum.plugin 2007-11-26 06:58:15 UTC (rev 26920)
@@ -26,17 +26,15 @@
if [ -e "$MD5_LOG" ]; then
IFS_OLD="$IFS"
- export IFS="
-"
+ export IFS=$'\t\n'
cat $MD5_LOG | grep "/bin/\|/games/\|/include/\|/lib/\|/sbin/" |
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
- MD5SUM=$(md5sum "$FILE")
- if ! grep -q "$LINE" $MD5SUM_LOGS/*; then
+ 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
More information about the Lunar-commits
mailing list