[buildbot] scripts: signall: skip updating hash of previous kmods/

LEDE Commits lede-commits at lists.infradead.org
Mon Nov 18 00:09:46 PST 2024


ynezz pushed a commit to buildbot.git, branch main:
https://git.openwrt.org/31eb26b97e7cf8f202c8bd2c65d550edd6e28374

commit 31eb26b97e7cf8f202c8bd2c65d550edd6e28374
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Sun Nov 17 16:13:02 2024 +0100

    scripts: signall: skip updating hash of previous kmods/
    
    Handle case where a sha256sums might contain previous kmods/. In such
    case packages.adb for previous kmods/ needs to be skipped as not
    included in the sign tar and already signed by previous runs.
    
    Skip is limited to kmods/ entry as those are the only entry expected to
    be present in the sha256sums but not included in sign tar.
    
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 scripts/signall.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/signall.sh b/scripts/signall.sh
index 6be0ef1..3bea7be 100755
--- a/scripts/signall.sh
+++ b/scripts/signall.sh
@@ -90,6 +90,8 @@ if [ -n "$APKSIGNKEY" ]; then
 
 		grep 'packages\.adb' sha256sums | while IFS= read -r line; do
 			filename="${line#*' *'}"
+			# Skip updating hash of previous kmods/ if not found in sign tar (already signed)
+			[ ! -f "$filename" ] && [[ "$filename" == kmods/* ]] && continue
 			escaped_filename="${filename//\//\\\/}"
 			escaped_filename="${escaped_filename//&/\\&}"
 			checksum_output=$(sha256sum --binary -- "$filename")




More information about the lede-commits mailing list