From 9c1f4b6d643d967f6f6cc085f9973c65b085231b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 25 Jun 2021 20:51:57 +0200 Subject: update-archlinux32-package: add safeguard against missing checksum --- update-archlinux32-package | 6 ++++++ 1 file changed, 6 insertions(+) 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') -- cgit v1.2.3-70-g09d2