Print MD5 sums on failures

Print the obtained and expected MD5 sums on mismatch.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This commit is contained in:
mauro.giachero 2009-01-28 12:56:12 +00:00
parent 157991f117
commit 7a23a7cf8c

View File

@ -1623,8 +1623,12 @@ build_package () {
echo "OK" echo "OK"
else else
echo "MD5SUM check failed." echo "MD5SUM check failed."
echo "Expected: $MD5SUM"
echo "Found: $MD5CHK"
echo "$PKG:" >> $SUMMARYLOG echo "$PKG:" >> $SUMMARYLOG
echo "MD5SUM check failed." >> $SUMMARYLOG echo "MD5SUM check failed." >> $SUMMARYLOG
echo "Expected: $MD5SUM" >> $SUMMARYLOG
echo "Found: $MD5CHK" >> $SUMMARYLOG
echo >> $SUMMARYLOG echo >> $SUMMARYLOG
checksum_fail $SRCNAME checksum_fail $SRCNAME
rm $SRCNAME rm $SRCNAME