diff options
author | Erich Eckner <git@eckner.net> | 2021-06-25 20:51:57 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-06-25 20:51:57 +0200 |
commit | 9c1f4b6d643d967f6f6cc085f9973c65b085231b (patch) | |
tree | aa5fb94aa1694bfd13b03e70479f3179292fe2a5 /update-archlinux32-package | |
parent | 77d4ef96316ad99f3c3ee90320fd8f62c5f6368c (diff) | |
download | devops-9c1f4b6d643d967f6f6cc085f9973c65b085231b.tar.xz |
update-archlinux32-package: add safeguard against missing checksum
Diffstat (limited to 'update-archlinux32-package')
-rwxr-xr-x | update-archlinux32-package | 6 |
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') |