Commit 828d8a7e authored by Natanael Copa's avatar Natanael Copa
Browse files

abuild: always fail when checksums does not match

parent 701be922
...@@ -177,13 +177,13 @@ md5check() { ...@@ -177,13 +177,13 @@ md5check() {
origin=$1; shift origin=$1; shift
echo "$src" | md5sum -c echo "$src" | md5sum -c
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
endreturnval=1
is_remote $origin || continue is_remote $origin || continue
echo "Because the remote file above failed the md5sum check it will be deleted." 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." echo "Rebuilding will cause it to re-download which in some cases may fix the problem."
file=`echo "$src" | sed 's/.*[ \t\n]\(.*\)/\1/'` file=`echo "$src" | sed 's/.*[ \t\n]\(.*\)/\1/'`
echo "Deleting: $file" echo "Deleting: $file"
rm $file rm $file
endreturnval=1
fi fi
done done
unset IFS unset IFS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment