cache: restore keys with pkgar files during --restore

This commit is contained in:
2026-04-28 15:10:59 +01:00
parent 324736ed94
commit b23714f542
+5
View File
@@ -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