From 7a23a7cf8cf0fce387ca460b825b97abfc28efbb Mon Sep 17 00:00:00 2001 From: "mauro.giachero" Date: Wed, 28 Jan 2009 12:56:12 +0000 Subject: [PATCH] Print MD5 sums on failures Print the obtained and expected MD5 sums on mismatch. Signed-off-by: Mauro Giachero --- src/usr/bin/sbopkg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/usr/bin/sbopkg b/src/usr/bin/sbopkg index 7012fd4..f11f3b0 100755 --- a/src/usr/bin/sbopkg +++ b/src/usr/bin/sbopkg @@ -1623,8 +1623,12 @@ build_package () { echo "OK" else echo "MD5SUM check failed." + echo "Expected: $MD5SUM" + echo "Found: $MD5CHK" echo "$PKG:" >> $SUMMARYLOG echo "MD5SUM check failed." >> $SUMMARYLOG + echo "Expected: $MD5SUM" >> $SUMMARYLOG + echo "Found: $MD5CHK" >> $SUMMARYLOG echo >> $SUMMARYLOG checksum_fail $SRCNAME rm $SRCNAME