summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--abuild.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/abuild.in b/abuild.in
index 69c803b..72a29b2 100644
--- a/abuild.in
+++ b/abuild.in
@@ -2127,6 +2127,8 @@ builddeps() {
# replace the md5sums in the APKBUILD
checksum() {
local s files
+ [ $(grep -c sha512sums APKBUILD) -le 1 ] || \
+ die "This file must be manually updated."
[ -z "$source" ] && [ -n "${md5sums}${sha256sums}${sha512sums}" ] \
&& msg "Removing checksums from APKBUILD"
sed -E -i -e '/^(md5|sha[0-9]+)sums=".*[^"]$/,/"$/d' \