From 828d8a7e1634042292458fa6aa741fdad3c2adb2 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 1 Apr 2011 12:24:40 +0000 Subject: abuild: always fail when checksums does not match --- abuild.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abuild.in b/abuild.in index 7d762cb..1ed2c4c 100755 --- a/abuild.in +++ b/abuild.in @@ -177,13 +177,13 @@ md5check() { origin=$1; shift echo "$src" | md5sum -c if [ $? -ne 0 ]; then + endreturnval=1 is_remote $origin || continue echo "Because the remote file above failed the md5sum check it will be deleted." echo "Rebuilding will cause it to re-download which in some cases may fix the problem." file=`echo "$src" | sed 's/.*[ \t\n]\(.*\)/\1/'` echo "Deleting: $file" rm $file - endreturnval=1 fi done unset IFS -- cgit v1.2.3