summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xabuild.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index ebf8a00..d3a4c87 100755
--- a/abuild.in
+++ b/abuild.in
@@ -299,7 +299,7 @@ md5check() {
# verify checksums
verify() {
local verified=false algo=
- for algo in md5 sha1 sha256 sha512; do
+ for algo in sha512 sha256 sha1 md5; do
local sums=
eval sums=\"\$${algo}sums\"
if [ -z "$sums" ] || [ -z "$source" ]; then
@@ -307,6 +307,7 @@ verify() {
fi
sumcheck "$algo" "$sums" || return 1
verified=true
+ break
done
if [ -n "$source" ] && ! $verified; then
die "Use 'abuild checksum' to generate/update the checksum(s)"