summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-06-25 20:51:57 +0200
committerErich Eckner <git@eckner.net>2021-06-25 20:51:57 +0200
commit9c1f4b6d643d967f6f6cc085f9973c65b085231b (patch)
treeaa5fb94aa1694bfd13b03e70479f3179292fe2a5
parent77d4ef96316ad99f3c3ee90320fd8f62c5f6368c (diff)
downloaddevops-9c1f4b6d643d967f6f6cc085f9973c65b085231b.tar.xz
update-archlinux32-package: add safeguard against missing checksum
-rwxr-xr-xupdate-archlinux32-package6
1 files changed, 6 insertions, 0 deletions
diff --git a/update-archlinux32-package b/update-archlinux32-package
index 3659c02..3b283f4 100755
--- a/update-archlinux32-package
+++ b/update-archlinux32-package
@@ -320,6 +320,12 @@ case ${update_path} in
;;
esac
+ if ! grep -qwF sha512sum "${git_repo_path}/${repo}/${pkgname}/PKGBUILD"; then
+ >&2 printf 'Something went wrong: %s has no checksum\nDid you run out of disk space again, deep42thought?\n' \
+ "${git_repo_path}/${repo}/${pkgname}"
+ exit 1
+ fi
+
git -C "${git_repo_path}" commit -m "${repo}/${pkgname}: ${old_pkgver} -> ${new_pkgver}"
;;
'kernel with upstream')