From 6a130bfc60a27b789dfbd5503c8e8e75c968389d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 10 Aug 2018 15:22:55 +0200 Subject: core/linux-lts: make index of "config" in "sources" irrelevant --- core/linux-lts/PKGBUILD | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/linux-lts/PKGBUILD b/core/linux-lts/PKGBUILD index e0cd2b31..d194aaf0 100644 --- a/core/linux-lts/PKGBUILD +++ b/core/linux-lts/PKGBUILD @@ -1,9 +1,11 @@ # upstream git revision: 18de895704e0dd68b27af8ee4a108bf448805101 # fail if upstream's .config changes -if [ "${sha256sums[4]}" = 'c645053c4525a1a70d5c10b52257ac136da7e9059b6a4a566a857a3d42046426' ]; then - sha256sums[4]='15ac94245d0de07d062665cc14169151179049948119f92949e3bd0fbdb4af41' -fi +for ((i=0; i<${#sha256sums[@]}; i++)); do + if [ "${sha256sums[${i}]}" = 'c645053c4525a1a70d5c10b52257ac136da7e9059b6a4a566a857a3d42046426' ]; then + sha256sums[${i}]='15ac94245d0de07d062665cc14169151179049948119f92949e3bd0fbdb4af41' + fi +done eval "$( declare -f package_linux-lts-headers | \ -- cgit v1.2.3-70-g09d2