From b23714f5420f6c94aa8a5966dd5be544f75a1ccf Mon Sep 17 00:00:00 2001 From: Vasilito Date: Tue, 28 Apr 2026 15:10:59 +0100 Subject: [PATCH] cache: restore keys with pkgar files during --restore --- local/scripts/cache-sync.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/local/scripts/cache-sync.sh b/local/scripts/cache-sync.sh index df4ae62f..f0d5b6fd 100755 --- a/local/scripts/cache-sync.sh +++ b/local/scripts/cache-sync.sh @@ -62,6 +62,11 @@ fi if [ "$MODE" = "--restore" ]; then echo "=== Restoring Cache to Recipes ===" + # Restore signing keys first (pkgar signatures depend on them) + if [ -d "${CACHE_ROOT}/../keys" ]; then + mkdir -p build + cp -f "${CACHE_ROOT}/../keys/id_ed25519"* build/ 2>/dev/null && echo "Keys restored" + fi count=0 for pkgar in "${CACHE_ROOT}"/*/stage.pkgar; do [ -f "$pkgar" ] || continue