[Lunar-commits] CVS: theedge/var/lib/lunar/plugins
check-md5sum.plugin, 1.1, 1.2
Auke Kok
sofar at lunar-linux.org
Mon Mar 28 13:26:25 UTC 2005
Update of /var/cvs/lunar/theedge/var/lib/lunar/plugins
In directory espresso.foo-projects.org:/tmp/cvs-serv7289/var/lib/lunar/plugins
Modified Files:
check-md5sum.plugin
Log Message:
locale-fix: do not rely on 'FAILED' in the output, since in spanish it is "TU MADRE"
Index: check-md5sum.plugin
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/plugins/check-md5sum.plugin,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- check-md5sum.plugin 25 Mar 2005 17:56:14 -0000 1.1
+++ check-md5sum.plugin 28 Mar 2005 13:26:23 -0000 1.2
@@ -29,23 +29,20 @@
export IFS="
"
- OUTPUT=$(cat $MD5_LOG |
- grep "/bin/\|/games/\|/include/\|/lib/\|/sbin/" |
- grep -v "/doc/\|/etc/\|/fonts/\|/man/\|/var/" |
- md5sum --check 2>/dev/null | grep -v ": OK" | cut -d: -f1)
-
- if [ -n "$OUTPUT" ]; then
- for FILE in $OUTPUT; do
+ 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 "$MD5SUM" $MD5SUM_LOGS/*; then
+ if ! grep -q "$LINE" $MD5SUM_LOGS/*; then
message "${FILE_COLOR}$FILE${DEFAULT_COLOR} of ${MODULE_COLOR}$MODULE${PROBLEM_COLOR} has wrong md5sum.${DEFAULT_COLOR}"
MD5SUM_STATUS=1
fi
fi
- done
- fi
+ fi
+ done
else
message "${MODULE_COLOR}$MODULE${PROBLEM_COLOR}is missing a md5sum log.${DEFAULT_COLOR}"
fi
More information about the Lunar-commits
mailing list