summaryrefslogtreecommitdiff
path: root/core/pacman/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-07-28 19:07:12 +0200
committerErich Eckner <git@eckner.net>2018-07-28 19:07:12 +0200
commit40334e3c8f924c8fb846be1412523d526bb112d6 (patch)
tree1a5852cc7a7fe8a92dc8dec58d7f4cd3ef6220df /core/pacman/PKGBUILD
parente072ec03d0a17ae684d564a32846abea71a122ba (diff)
downloadpackages-40334e3c8f924c8fb846be1412523d526bb112d6.tar.xz
core/pacman: make checksum-corrections index-independent
Diffstat (limited to 'core/pacman/PKGBUILD')
-rw-r--r--core/pacman/PKGBUILD14
1 files changed, 8 insertions, 6 deletions
diff --git a/core/pacman/PKGBUILD b/core/pacman/PKGBUILD
index e2762d50..ed748bb4 100644
--- a/core/pacman/PKGBUILD
+++ b/core/pacman/PKGBUILD
@@ -3,9 +3,11 @@
depends+=(archlinux32-keyring)
# fail if upstream changes makepkg.conf or pacman.conf
-if [ "${sha256sums[4]}" = 'b82e9c1073292766c2f49b5c771dddf37383f1151117ef9cd5e0c11047b4f3eb' ]; then
- sha256sums[4]='d75bbbe42d290c4f22a95e6ac86d4723dc6d0c08228d14c3dcbae9dc5d2514e5'
-fi
-if [ "${sha256sums[5]}" = '650ddad24cad6afc4aecb4829cb8f06b9acb70c10a44f756fe8bd279949b518e' ]; then
- sha256sums[5]='d1c3e5f9b7259e401ab121aff335531452d23dc67d9e6c2f464771d25f11058a'
-fi
+for ((i=0; i<${#sha256sums[@]}; i++)); do
+ if [ "${sha256sums[${i}]}" = 'b82e9c1073292766c2f49b5c771dddf37383f1151117ef9cd5e0c11047b4f3eb' ]; then
+ sha256sums[${i}]='d75bbbe42d290c4f22a95e6ac86d4723dc6d0c08228d14c3dcbae9dc5d2514e5'
+ fi
+ if [ "${sha256sums[${i}]}" = '650ddad24cad6afc4aecb4829cb8f06b9acb70c10a44f756fe8bd279949b518e' ]; then
+ sha256sums[${i}]='d1c3e5f9b7259e401ab121aff335531452d23dc67d9e6c2f464771d25f11058a'
+ fi
+done