diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-07-19 13:39:24 +0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-19 11:43:24 +0000 |
commit | d4627112a910e2dfab045e3c95b31cd2d554cad0 (patch) | |
tree | fa149be484dc3639665f1c065b1d763b185d64da /abuild.in | |
parent | b48df6c57519a333ba7d79b0cfa86541222c1913 (diff) | |
download | abuild-d4627112a910e2dfab045e3c95b31cd2d554cad0.tar.gz abuild-d4627112a910e2dfab045e3c95b31cd2d554cad0.tar.bz2 abuild-d4627112a910e2dfab045e3c95b31cd2d554cad0.tar.xz abuild-d4627112a910e2dfab045e3c95b31cd2d554cad0.zip |
abuild: verify: only check strongest checksum which is present
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)" |